Stamp the database when creating it, fixes #259
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
from mailu import app, manager, db
|
from mailu import app, manager, db
|
||||||
from mailu.admin import models
|
from mailu.admin import models
|
||||||
|
|
||||||
|
import flask_migrate
|
||||||
|
|
||||||
|
|
||||||
@manager.command
|
@manager.command
|
||||||
def flushdb():
|
def flushdb():
|
||||||
@@ -14,6 +16,7 @@ def initdb():
|
|||||||
""" Initialize the database
|
""" Initialize the database
|
||||||
"""
|
"""
|
||||||
db.create_all()
|
db.create_all()
|
||||||
|
flask_migrate.stamp(revision="head")
|
||||||
|
|
||||||
|
|
||||||
@manager.command
|
@manager.command
|
||||||
|
|||||||
Reference in New Issue
Block a user