def setup_module():
    dropdb()
    # Run core migration in order to create buffer table
    alembic.command.upgrade(ALEMBIC_CONFIG, _core_test_revision)
    prepare()
    # Run extension migrations
    ext_alembic_config = make_alembic_config_from_extension(
        VolumeManagerExtension)
    alembic.command.upgrade(ext_alembic_config, _extension_test_revision)
def setup_module(module):
    dropdb()
    # Run core migration in order to create buffer table
    alembic.command.upgrade(ALEMBIC_CONFIG, _core_test_revision)
    prepare()
    # Run extension migrations
    ext_alembic_config = make_alembic_config_from_extension(
        VolumeManagerExtension)
    alembic.command.upgrade(ext_alembic_config, _extension_test_revision)
예제 #3
0
def setup_module(module):
    alembic_config = make_alembic_config_from_extension(VolumeManagerExtension)
    db.dropdb()
    alembic.command.upgrade(alembic_config, _test_revision)
예제 #4
0
def setup_module(module):
    alembic_config = make_alembic_config_from_extension(
        extension.ClusterUpgradeExtension)
    db.dropdb()
    alembic.command.upgrade(alembic_config, _test_revision)