mirror of
https://github.com/clearml/clearml-server
synced 2025-03-03 18:54:20 +00:00
Fix running migration scripts calling other files
This commit is contained in:
parent
e18b21639c
commit
4fe61ee25c
@ -69,7 +69,8 @@ def _apply_migrations(log: Logger):
|
||||
log.info(f"Skipping migration {script.name} (empty databases)")
|
||||
else:
|
||||
spec = importlib.util.spec_from_file_location(
|
||||
".".join((_parent_dir.name, _migrations, script.stem)), str(script)
|
||||
".".join(("apiserver", _parent_dir.name, _migrations, script.stem)),
|
||||
str(script),
|
||||
)
|
||||
module = importlib.util.module_from_spec(spec)
|
||||
spec.loader.exec_module(module)
|
||||
|
Loading…
Reference in New Issue
Block a user