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