예제 #1
0
        def init_db():
            db.clear_db()
            db.init_db()
            from fa_test.app.users import data as users_data

            users_data.setup_initial_data(db.session)
예제 #2
0
def recreate_db():
    """ Drop and then created db tables. """
    db.clear_db()
    db.init_db()
예제 #3
0
 def init_db():
     db.clear_db()
     db.init_db()
     from fa_test.app.users import data as users_data
     users_data.setup_initial_data(db.session)
예제 #4
0
def recreate_db():
    """ Drop and then created db tables. """
    db.clear_db()
    db.init_db()