Killed existing downgrade rules in migration scripts

Change-Id: If98c08bc45e4bf0f7df40c43e8cb1abc36bd7873
Partial-Bug: #1434103
This commit is contained in:
Ihar Hrachyshka 2015-07-29 13:02:15 +02:00
parent 20faa8c9c0
commit c5d5e3e22e
7 changed files with 0 additions and 74 deletions

View File

@ -38,7 +38,3 @@ def upgrade():
sa.ForeignKeyConstraint(['agent_id'], ['agents.id'],
ondelete='CASCADE'),
sa.PrimaryKeyConstraint('loadbalancer_id'))
def downgrade():
op.drop_table('lbaas_loadbalanceragentbindings')

View File

@ -36,9 +36,3 @@ def upgrade():
for table in TABLES:
op.create_index(op.f('ix_%s_tenant_id' % table),
table, ['tenant_id'], unique=False)
def downgrade():
for table in TABLES:
op.drop_index(op.f('ix_%s_tenant_id' % table),
table_name=table)

View File

@ -60,9 +60,3 @@ def upgrade():
sa.UniqueConstraint('monitor_id', 'edge_id',
name='uniq_nsxv_edge_monitor_mappings')
)
def downgrade():
op.drop_table('nsxv_edge_pool_mappings')
op.drop_table('nsxv_edge_vip_mappings')
op.drop_table('nsxv_edge_monitor_mappings')

View File

@ -75,35 +75,3 @@ def upgrade():
u'lbaas_healthmonitors',
sa.Column(PROVISIONING_STATUS, sa.String(16), nullable=False)
)
def downgrade():
op.add_column(
u'lbaas_loadbalancers',
sa.Column(STATUS, sa.String(16), nullable=False)
)
op.drop_column(u'lbaas_loadbalancers', PROVISIONING_STATUS)
op.drop_column(u'lbaas_loadbalancers', OPERATING_STATUS)
op.add_column(
u'lbaas_listeners',
sa.Column(STATUS, sa.String(16), nullable=False)
)
op.drop_column(u'lbaas_listeners', PROVISIONING_STATUS)
op.drop_column(u'lbaas_listeners', OPERATING_STATUS)
op.add_column(
u'lbaas_pools',
sa.Column(STATUS, sa.String(16), nullable=False)
)
op.drop_column(u'lbaas_pools', PROVISIONING_STATUS)
op.drop_column(u'lbaas_pools', OPERATING_STATUS)
op.add_column(
u'lbaas_members',
sa.Column(STATUS, sa.String(16), nullable=False)
)
op.drop_column(u'lbaas_members', PROVISIONING_STATUS)
op.drop_column(u'lbaas_members', OPERATING_STATUS)
op.add_column(
u'lbaas_healthmonitors',
sa.Column(STATUS, sa.String(16), nullable=False)
)
op.drop_column(u'lbaas_healthmonitors', PROVISIONING_STATUS)

View File

@ -151,18 +151,3 @@ def upgrade():
sa.ForeignKeyConstraint([u'loadbalancer_id'],
[u'lbaas_loadbalancers.id'])
)
def downgrade():
op.drop_table(u'lbaas_loadbalancer_statistics')
op.drop_table(u'lbaas_listeners')
listener_protocols.drop(op.get_bind(), checkfirst=False)
op.drop_table(u'lbaas_loadbalancers')
op.drop_table(u'lbaas_members')
op.drop_table(u'lbaas_sessionpersistences')
sesssionpersistences_type.drop(op.get_bind(), checkfirst=False)
op.drop_table(u'lbaas_pools')
pool_protocols.drop(op.get_bind(), checkfirst=False)
lb_algorithms.drop(op.get_bind(), checkfirst=False)
op.drop_table(u'lbaas_healthmonitors')
healthmonitors_type.drop(op.get_bind(), checkfirst=False)

View File

@ -52,10 +52,3 @@ def upgrade():
op.add_column('lbaas_listeners',
sa.Column(u'default_tls_container_id', sa.String(128),
nullable=True))
def downgrade():
migration.alter_enum('lbaas_listeners', 'protocol', old_listener_protocols,
nullable=False)
op.drop_table('lbaas_sni')
op.drop_column('lbaas_listeners', 'default_tls_container_id')

View File

@ -28,7 +28,3 @@ down_revision = None
def upgrade():
pass
def downgrade():
pass