Fix missing unique constraint drop

This commit is contained in:
Alexander Hess 2021-01-05 22:32:24 +01:00
parent 992d2bb7d4
commit 078355897a
Signed by: alexander
GPG key ID: 344EA5AB10D868E0

View file

@ -148,6 +148,12 @@ def upgrade():
def downgrade():
"""Downgrade to revision f11cd76d2f45."""
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.f('ix_pixels_on_n_y'), table_name='pixels', schema=config.CLEAN_SCHEMA,
)