Remove db SQL Schema Downgrades

Downgrade methods are supposed to be removed following a cross project
spec approved by TC https://review.openstack.org/#/c/152337/

Change-Id: I148f50211fe14bbc4cf22e3312258fc7460119ab
Partially-implements: blueprint remove-schema-downgrades
This commit is contained in:
zhangguoqing 2016-07-29 07:26:43 +00:00
parent b06b9456c2
commit d77d2c6e12
5 changed files with 0 additions and 22 deletions

View File

@ -16,7 +16,3 @@ ${imports if imports else ""}
def upgrade():
${upgrades if upgrades else "pass"}
def downgrade():
${downgrades if downgrades else "pass"}

View File

@ -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')

View File

@ -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')

View File

@ -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')

View File

@ -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)