Stamp the database when creating it, fixes #259

master
kaiyou 7 years ago
parent 68ba514297
commit 95970cd7b8

@ -1,6 +1,8 @@
from mailu import app, manager, db
from mailu.admin import models
import flask_migrate
@manager.command
def flushdb():
@ -14,6 +16,7 @@ def initdb():
""" Initialize the database
"""
db.create_all()
flask_migrate.stamp(revision="head")
@manager.command

Loading…
Cancel
Save