Remove duplicates

This commit is contained in:
Rebecca Law
2020-03-31 15:17:27 +01:00
parent 7489cda6f0
commit 5f8ea5d1f5

View File

@@ -39,14 +39,6 @@ def upgrade():
"""
op.execute(ix_notifications_notification_type_composite)
# DROP and CREATE all other indexes
op.execute('DROP INDEX IF EXISTS ix_notifications_service_id_created_at')
op.execute(
'CREATE INDEX ix_notifications_service_id_created_at ON NOTIFICATIONS (service_id, created_at)'
)
op.execute('DROP INDEX IF EXISTS ix_notifications_client_reference')
op.execute('CREATE INDEX ix_notifications_client_reference on notifications (client_reference)')
op.execute('DROP INDEX IF EXISTS ix_notifications_client_reference')
op.execute('CREATE INDEX ix_notifications_client_reference ON notifications (client_reference)')