Esempio n. 1
0
def db(request, app):
    with app.app_context():
        _database.create_all()

    @request.addfinalizer
    def _drop():
        with app.app_context():
            _database.drop_all()
Esempio n. 2
0
def db(request, app):
    with app.app_context():
        _database.create_all()

    @request.addfinalizer
    def _drop():
        with app.app_context():
            _database.drop_all()
Esempio n. 3
0
def createdb():
    db.create_all()
    generic_db.create_all()
Esempio n. 4
0
def createdb():
    db.create_all()
    generic_db.create_all()