def db_rebuild(): '''Rebuild the db''' db.drop_all() db.create_all() # then, load the Alembic configuration and generate the # version table, "stamping" it with the most recent rev: setup_alembic_config()
def db_rebuild(): '''Rebuild the db''' db.drop_all() db.create_all() # then, load the Alembic configuration and generate the # version table, "stamping" it with the most recent rev: alembic_cfg = Config("alembic.ini") command.stamp(alembic_cfg,"head")
def db_rebuild(): '''Rebuild the db''' with app.app_context(): db.reflect() db.drop_all() #db_DropEverything(db) #_compile_drop_table(db) # db.create_all() # then, load the Alembic configuration and generate the # version table, "stamping" it with the most recent rev: setup_alembic_config()
def tearDown(self): with self.flask_app.app_context(): db.drop_all() db.session.remove() self.redis_flushall()
def rebuild_db(): """Rebuild the DB.""" delete_indexes() delete_materialized_views() db.drop_all() db.create_all()
def rebuild_db(): db.drop_all() db.create_all()
def rebuild_db(): """Rebuild the DB.""" delete_materialized_views() db.drop_all() db.create_all()
def rebuild_db(): """Rebuild the DB.""" db.drop_all() db.create_all()