Files
notifications-api/migrations/versions/0127_remove_unique_constraint.py

31 lines
735 B
Python
Raw Permalink Normal View History

"""
2017-10-19 14:39:53 +01:00
Revision ID: 0127_remove_unique_constraint
Revises: 0126_add_annual_billing
Create Date: 2017-10-17 16:47:37.826333
"""
2024-04-01 15:12:33 -07:00
import sqlalchemy as sa
from alembic import op
2023-08-29 14:54:30 -07:00
revision = "0127_remove_unique_constraint"
down_revision = "0126_add_annual_billing"
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
2023-08-29 14:54:30 -07:00
op.drop_index("ix_service_sms_senders_service_id", table_name="service_sms_senders")
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
2023-08-29 14:54:30 -07:00
op.create_index(
"ix_service_sms_senders_service_id",
"service_sms_senders",
["service_id"],
unique=True,
)
# ### end Alembic commands ###