예제 #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()
예제 #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()
예제 #3
0
파일: cli.py 프로젝트: tfmorris/pybossa
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")
예제 #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()
예제 #5
0
 def tearDown(self):
     with self.flask_app.app_context():
         db.drop_all()
         db.session.remove()
         self.redis_flushall()
예제 #6
0
파일: default.py 프로젝트: PyBossa/pybossa
def rebuild_db():
    """Rebuild the DB."""
    delete_indexes()
    delete_materialized_views()
    db.drop_all()
    db.create_all()
예제 #7
0
def rebuild_db():
    db.drop_all()
    db.create_all()
예제 #8
0
def rebuild_db():
    """Rebuild the DB."""
    delete_materialized_views()
    db.drop_all()
    db.create_all()
예제 #9
0
파일: default.py 프로젝트: TMoneyZ/pybossa
def rebuild_db():
    """Rebuild the DB."""
    db.drop_all()
    db.create_all()
예제 #10
0
def rebuild_db():
    """Rebuild the DB."""
    db.drop_all()
    db.create_all()
예제 #11
0
파일: model.py 프로젝트: epiraces/pybossa
def rebuild_db():
    db.drop_all()
    db.create_all()