1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-02-21 19:19:39 +02:00

Stamp the database when creating it, fixes #259

This commit is contained in:
kaiyou 2017-09-16 22:29:36 +02:00
parent 68ba514297
commit 95970cd7b8

View File

@ -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