From 4a78d4ece9be01b5502440581eebd693f5bc7880 Mon Sep 17 00:00:00 2001 From: Filip Valder Date: Sat, 26 Nov 2016 01:08:08 +0100 Subject: [PATCH] test whether it works like this --- module_build_service/manage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module_build_service/manage.py b/module_build_service/manage.py index 7d413ab1..460936ee 100644 --- a/module_build_service/manage.py +++ b/module_build_service/manage.py @@ -101,8 +101,9 @@ def testpdc(): def upgradedb(): """ Upgrades the database schema to the latest revision """ + thisdir = os.path.abspath(os.path.dirname(__file__)) with app.app_context(): - flask_migrate.upgrade() + flask_migrate.upgrade(directory=thisdir) insert_fake_baseruntime()