From 078355897a8c903b5aadb51ad2d18ccb56702356 Mon Sep 17 00:00:00 2001 From: Alexander Hess Date: Tue, 5 Jan 2021 22:32:24 +0100 Subject: [PATCH] Fix missing unique constraint drop --- .../versions/rev_20210102_18_888e352d7526_add_pixel_grid.py | 6 ++++++ 1 file changed, 6 insertions(+) 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, )