示例#1
0
文件: manager.py 项目: akn/pi
def syncdb():
    """Creates missing database tables."""
    db.create_all()
示例#2
0
文件: manager.py 项目: akn/pi
def resetdb():
    """Drops and creates the database."""
    db.drop_all()
    db.create_all()