Esempio n. 1
0
def syncdb():
    """ Creates a database with all of the tables defined in
        your Alchemy models
    """

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