diff --git a/migrations/versions/rev_20210102_18_888e352d7526_add_pixel_grid.py b/migrations/versions/rev_20210102_18_888e352d7526_add_pixel_grid.py index fb1aa16..dc5e8d7 100644 --- a/migrations/versions/rev_20210102_18_888e352d7526_add_pixel_grid.py +++ b/migrations/versions/rev_20210102_18_888e352d7526_add_pixel_grid.py @@ -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, )