From 2b443e28260eca66bad88685baa51bea6ba4e8c3 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Fri, 17 Jul 2015 19:22:49 +0200 Subject: [PATCH] Fix manage.py script for migrations. --- manage.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/manage.py b/manage.py index 0b29e2d..b2ebf81 100755 --- a/manage.py +++ b/manage.py @@ -1,10 +1,13 @@ #!/usr/bin/env python from flask.ext.script import Manager -from flask.ext.migrate import MigrateCommand +from flask.ext.migrate import Migrate, MigrateCommand -from accountant import app +from accountant import app, db manager = Manager(app) + +migrate = Migrate(app, db) + manager.add_command('db', MigrateCommand) if __name__ == "__main__":