示例#1
0
def syncdb():
    """ Creates a database with all of the tables defined in
        your Alchemy models
    """

    db.drop_all()
    db.create_all()
示例#2
0
 def fin():
     db.drop_all()
     db.create_all()
示例#3
0
def build_db(app):
    db.create_all()
示例#4
0
 def setup(self):
     db.create_all()
     db.session.commit()
示例#5
0
def create_db():
    """Creates the db tables."""
    db.create_all()