Beispiel #1
0
def drop_db(app):
    db.init_app(app)
    with app.app_context():
        db.drop_all()
Beispiel #2
0
def create_db(app):
    db.init_app(app)
    with app.app_context():
        db.drop_all()
        db.create_all()
Beispiel #3
0
def create_db(app):
    db.init_app(app)
    with app.app_context():
        db.drop_all()
        db.create_all()
Beispiel #4
0
def drop_db(app):
    db.init_app(app)
    with app.app_context():
        db.drop_all()