from app_config import db

db.create_all()
db.session.commit()
示例#2
0
def createdbschema():
    db.create_all()
示例#3
0
def recreate_db():
    db.drop_all()
    db.create_all()