1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-11-27 22:18:22 +02:00

Fix remaining migration scripts and remove initdb/flushdb from manage.py

This commit is contained in:
kaiyou
2017-09-17 11:55:12 +02:00
parent 829e4a5e28
commit a96478c496
5 changed files with 70 additions and 62 deletions

View File

@@ -1,23 +1,6 @@
from mailu import app, manager, db
from mailu.admin import models
import flask_migrate
@manager.command
def flushdb():
""" Flush the database
"""
db.drop_all()
@manager.command
def initdb():
""" Initialize the database
"""
db.create_all()
flask_migrate.stamp(revision="head")
@manager.command
def admin(localpart, domain_name, password):