예제 #1
0
def db_downgrade(c, dir=DEFAULT_MIGRATION_DIR):
    """
    Downgrade database to a specific revision.
    """
    with app.app_context():
        migrate.downgrade(directory=dir)
예제 #2
0
def db_stamp(c, dir=DEFAULT_MIGRATION_DIR):
    """
    Set database revision to a specific value.
    """
    with app.app_context(directory=dir):
        pass
예제 #3
0
파일: tasks.py 프로젝트: Kiranmoka/tessera
def db_migrate(c, dir=DEFAULT_MIGRATION_DIR):
    """
    Generate new autofilled migration.
    """
    with app.app_context():
        migrate.migrate(directory=dir)
예제 #4
0
파일: tasks.py 프로젝트: Kiranmoka/tessera
def db_upgrade(c, dir=DEFAULT_MIGRATION_DIR):
    """
    Run any migrations needed make database current.
    """
    with app.app_context():
        migrate.upgrade(directory=dir)
예제 #5
0
def db_migrate(c, dir=DEFAULT_MIGRATION_DIR):
    """
    Generate new autofilled migration.
    """
    with app.app_context():
        migrate.migrate(directory=dir)
예제 #6
0
def db_current(c, dir=DEFAULT_MIGRATION_DIR):
    with app.app_context():
        migrate.current(directory=dir)
예제 #7
0
파일: tasks.py 프로젝트: Kiranmoka/tessera
def db_history(c, dir=DEFAULT_MIGRATION_DIR):
    """
    List migration history.
    """
    with app.app_context():
        migrate.history(directory=dir)
예제 #8
0
def db_current(c, dir=DEFAULT_MIGRATION_DIR):
    """
    Show current migration revision.
    """
    with app.app_context():
        migrate.current(directory=dir)
예제 #9
0
파일: tasks.py 프로젝트: Kiranmoka/tessera
def db_downgrade(c, dir=DEFAULT_MIGRATION_DIR):
    """
    Downgrade database to a specific revision.
    """
    with app.app_context():
        migrate.downgrade(directory=dir)
예제 #10
0
파일: tasks.py 프로젝트: Kiranmoka/tessera
def db_stamp(c, dir=DEFAULT_MIGRATION_DIR):
    """
    Set database revision to a specific value.
    """
    with app.app_context(directory=dir):
        pass
예제 #11
0
def db_stamp(c, dir=DEFAULT_MIGRATION_DIR):
    with app.app_context(directory=dir):
        pass
예제 #12
0
def db_downgrade(c, dir=DEFAULT_MIGRATION_DIR):
    with app.app_context():
        migrate.downgrade(directory=dir)
예제 #13
0
def db_revision(c, dir=DEFAULT_MIGRATION_DIR):
    with app.app_context():
        migrate.revision(directory=dir)
예제 #14
0
def db_history(c, dir=DEFAULT_MIGRATION_DIR):
    """
    List migration history.
    """
    with app.app_context():
        migrate.history(directory=dir)
예제 #15
0
파일: tasks.py 프로젝트: Kiranmoka/tessera
def db_init_migrations(c, dir=None):
    """
    Update the project to support migrations.
    """
    with app.app_context():
        migrate.init(dir)
예제 #16
0
def db_init_migrations(c, dir=None):
    """
    Update the project to support migrations.
    """
    with app.app_context():
        migrate.init(dir)
예제 #17
0
파일: tasks.py 프로젝트: Kiranmoka/tessera
def db_current(c, dir=DEFAULT_MIGRATION_DIR):
    """
    Show current migration revision.
    """
    with app.app_context():
        migrate.current(directory=dir)
예제 #18
0
def db_revision(c, dir=DEFAULT_MIGRATION_DIR):
    """
    Generate new empty revision script.
    """
    with app.app_context():
        migrate.revision(directory=dir)
예제 #19
0
파일: tasks.py 프로젝트: Kiranmoka/tessera
def db_revision(c, dir=DEFAULT_MIGRATION_DIR):
    """
    Generate new empty revision script.
    """
    with app.app_context():
        migrate.revision(directory=dir)
예제 #20
0
def db_upgrade(c, dir=DEFAULT_MIGRATION_DIR):
    """
    Run any migrations needed make database current.
    """
    with app.app_context():
        migrate.upgrade(directory=dir)
예제 #21
0
def db_init_migrations(c, dir=None):
    with app.app_context():
        migrate.init(dir)