fix: always set version_locations explicitly in migration runner
This commit is contained in:
@@ -29,8 +29,7 @@ def run_migrations(db_url: str, plugin_migration_dirs: list[Path] | None = None)
|
|||||||
if pv.exists():
|
if pv.exists():
|
||||||
version_locs.append(str(pv))
|
version_locs.append(str(pv))
|
||||||
|
|
||||||
if len(version_locs) > 1:
|
cfg.set_main_option("version_locations", " ".join(version_locs))
|
||||||
cfg.set_main_option("version_locations", " ".join(version_locs))
|
|
||||||
|
|
||||||
logger.info("Running migrations (version_locations: %s)", " ".join(version_locs))
|
logger.info("Running migrations (version_locations: %s)", " ".join(version_locs))
|
||||||
command.upgrade(cfg, "heads")
|
command.upgrade(cfg, "heads")
|
||||||
|
|||||||
Reference in New Issue
Block a user