Skip to content

Commit

Permalink
squash
Browse files Browse the repository at this point in the history
  • Loading branch information
kalbfled committed Apr 23, 2024
1 parent 8542d8f commit b188e8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions migrations/versions/0368_servicesmssender_columns.py
Original file line number Diff line number Diff line change
Expand Up @@ -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('fk_service_sms_senders_provider_id', 'service_sms_senders', 'provider_details', ['provider_id'], ['id'])
op.create_foreign_key('service_sms_senders_provider_id_fkey', 'service_sms_senders', 'provider_details', ['provider_id'], ['id'])


def downgrade():
op.drop_constraint('fk_service_sms_senders_provider_id', 'service_sms_senders', type_='foreignkey')
op.drop_constraint('service_sms_senders_provider_id_fkey', 'service_sms_senders', type_='foreignkey')
op.drop_column('service_sms_senders', 'provider_id')
op.drop_column('service_sms_senders', 'description')

0 comments on commit b188e8a

Please sign in to comment.