Fix missing unique constraint drop
This commit is contained in:
parent
992d2bb7d4
commit
078355897a
1 changed files with 6 additions and 0 deletions
|
@ -148,6 +148,12 @@ def upgrade():
|
||||||
def downgrade():
|
def downgrade():
|
||||||
"""Downgrade to revision f11cd76d2f45."""
|
"""Downgrade to revision f11cd76d2f45."""
|
||||||
op.drop_table('addresses_pixels', schema=config.CLEAN_SCHEMA)
|
op.drop_table('addresses_pixels', schema=config.CLEAN_SCHEMA)
|
||||||
|
op.drop_constraint(
|
||||||
|
'uq_addresses_on_id_city_id',
|
||||||
|
'addresses',
|
||||||
|
type_=None,
|
||||||
|
schema=config.CLEAN_SCHEMA,
|
||||||
|
)
|
||||||
op.drop_index(
|
op.drop_index(
|
||||||
op.f('ix_pixels_on_n_y'), table_name='pixels', schema=config.CLEAN_SCHEMA,
|
op.f('ix_pixels_on_n_y'), table_name='pixels', schema=config.CLEAN_SCHEMA,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue