From c06bf7c7be5ccbe6468c23abc3f9a8404f1dc912 Mon Sep 17 00:00:00 2001 From: Filip Valder Date: Sat, 26 Nov 2016 01:16:04 +0100 Subject: [PATCH] fix & rename ... perhaps might be configurable? --- module_build_service/manage.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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()