コード例 #1
0
ファイル: cli.py プロジェクト: PabloCastellano/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:
    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
ファイル: model.py プロジェクト: openstepmedia/pybossa
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()