diff --git a/migrations/versions/0368_servicesmssender_columns.py b/migrations/versions/0368_servicesmssender_columns.py index 6dc3f117e2..16f021359a 100644 --- a/migrations/versions/0368_servicesmssender_columns.py +++ b/migrations/versions/0368_servicesmssender_columns.py @@ -15,10 +15,10 @@ def upgrade(): op.add_column('service_sms_senders', sa.Column('description', sa.String(length=256), nullable=True)) op.add_column('service_sms_senders', sa.Column('provider_id', postgresql.UUID(), nullable=True)) - op.create_foreign_key(None, 'service_sms_senders', 'provider_details', ['provider_id'], ['id']) + op.create_foreign_key('fk_service_sms_senders_provider_id', 'service_sms_senders', 'provider_details', ['provider_id'], ['id']) def downgrade(): - op.drop_constraint(None, 'service_sms_senders', type_='foreignkey') + op.drop_constraint('fk_service_sms_senders_provider_id', 'service_sms_senders', type_='foreignkey') op.drop_column('service_sms_senders', 'provider_id') op.drop_column('service_sms_senders', 'description')