diff --git a/module_build_service/manage.py b/module_build_service/manage.py index 460936ee..35462017 100644 --- a/module_build_service/manage.py +++ b/module_build_service/manage.py @@ -101,9 +101,11 @@ def testpdc(): def upgradedb(): """ Upgrades the database schema to the latest revision """ - thisdir = os.path.abspath(os.path.dirname(__file__)) + # TODO: configurable? + migrations_dir = os.path.join(os.path.abspath(os.path.dirname(__file__)), + 'migrations') with app.app_context(): - flask_migrate.upgrade(directory=thisdir) + flask_migrate.upgrade(directory=migrations_dir) insert_fake_baseruntime()