Exemple #1
0
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()
Exemple #2
0
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()
Exemple #3
0
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")
Exemple #4
0
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()
Exemple #5
0
 def tearDown(self):
     with self.flask_app.app_context():
         db.drop_all()
         db.session.remove()
         self.redis_flushall()
Exemple #6
0
def rebuild_db():
    """Rebuild the DB."""
    delete_indexes()
    delete_materialized_views()
    db.drop_all()
    db.create_all()
Exemple #7
0
def rebuild_db():
    db.drop_all()
    db.create_all()
Exemple #8
0
def rebuild_db():
    """Rebuild the DB."""
    delete_materialized_views()
    db.drop_all()
    db.create_all()
Exemple #9
0
def rebuild_db():
    """Rebuild the DB."""
    db.drop_all()
    db.create_all()
Exemple #10
0
def rebuild_db():
    """Rebuild the DB."""
    db.drop_all()
    db.create_all()
Exemple #11
0
def rebuild_db():
    db.drop_all()
    db.create_all()