diff --git a/cloudkitty/db/sqlalchemy/alembic/script.py.mako b/cloudkitty/db/sqlalchemy/alembic/script.py.mako index 95702017..3b1c960c 100644 --- a/cloudkitty/db/sqlalchemy/alembic/script.py.mako +++ b/cloudkitty/db/sqlalchemy/alembic/script.py.mako @@ -16,7 +16,3 @@ ${imports if imports else ""} def upgrade(): ${upgrades if upgrades else "pass"} - - -def downgrade(): - ${downgrades if downgrades else "pass"} diff --git a/cloudkitty/db/sqlalchemy/alembic/versions/2ac2217dcbd9_added_support_for_meta_collector.py b/cloudkitty/db/sqlalchemy/alembic/versions/2ac2217dcbd9_added_support_for_meta_collector.py index 8e5e282f..001b91a3 100644 --- a/cloudkitty/db/sqlalchemy/alembic/versions/2ac2217dcbd9_added_support_for_meta_collector.py +++ b/cloudkitty/db/sqlalchemy/alembic/versions/2ac2217dcbd9_added_support_for_meta_collector.py @@ -20,7 +20,3 @@ def upgrade(): sa.Column('service', sa.String(length=255), nullable=False), sa.Column('collector', sa.String(length=255), nullable=False), sa.PrimaryKeyConstraint('service')) - - -def downgrade(): - op.drop_table('service_to_collector_mappings') diff --git a/cloudkitty/db/sqlalchemy/alembic/versions/385e33fef139_added_priority_to_modules_state.py b/cloudkitty/db/sqlalchemy/alembic/versions/385e33fef139_added_priority_to_modules_state.py index 772a6f32..41f28e39 100644 --- a/cloudkitty/db/sqlalchemy/alembic/versions/385e33fef139_added_priority_to_modules_state.py +++ b/cloudkitty/db/sqlalchemy/alembic/versions/385e33fef139_added_priority_to_modules_state.py @@ -18,7 +18,3 @@ def upgrade(): op.add_column( 'modules_state', sa.Column('priority', sa.Integer(), nullable=True)) - - -def downgrade(): - op.drop_column('modules_state', 'priority') diff --git a/cloudkitty/db/sqlalchemy/alembic/versions/464e951dc3b8_initial_migration.py b/cloudkitty/db/sqlalchemy/alembic/versions/464e951dc3b8_initial_migration.py index 3e1384d0..fca6ebc6 100644 --- a/cloudkitty/db/sqlalchemy/alembic/versions/464e951dc3b8_initial_migration.py +++ b/cloudkitty/db/sqlalchemy/alembic/versions/464e951dc3b8_initial_migration.py @@ -26,8 +26,3 @@ def upgrade(): sa.Column('name', sa.String(length=255), nullable=False), sa.Column('state', sa.Boolean(), nullable=False), sa.PrimaryKeyConstraint('name')) - - -def downgrade(): - op.drop_table('modules_state') - op.drop_table('states') diff --git a/cloudkitty/db/sqlalchemy/migration.py b/cloudkitty/db/sqlalchemy/migration.py index a6e16056..11439fe1 100644 --- a/cloudkitty/db/sqlalchemy/migration.py +++ b/cloudkitty/db/sqlalchemy/migration.py @@ -27,11 +27,6 @@ def upgrade(revision): return migration.upgrade(config, revision) -def downgrade(revision): - config = migration.load_alembic_config(ALEMBIC_REPO) - return migration.downgrade(config, revision) - - def version(): config = migration.load_alembic_config(ALEMBIC_REPO) return migration.version(config)