Files
notifications-api/migrations/versions/0291_remove_unused_index.py
T

22 lines
418 B
Python
Raw Normal View History

2019-05-16 14:36:17 +01:00
"""
Revision ID: 0291_remove_unused_index
Revises: 0290_org_go_live_notes
Create Date: 2019-05-16 14:05:18.104274
"""
2024-04-01 15:12:33 -07:00
2019-05-16 14:36:17 +01:00
import sqlalchemy as sa
2023-12-08 21:43:52 -05:00
from alembic import op
2019-05-16 14:36:17 +01:00
2023-08-29 14:54:30 -07:00
revision = "0291_remove_unused_index"
down_revision = "0290_org_go_live_notes"
2019-05-16 14:36:17 +01:00
def upgrade():
2023-08-29 14:54:30 -07:00
op.drop_index("ix_domain_domain", table_name="domain")
2019-05-16 14:36:17 +01:00
def downgrade():
2023-08-29 14:54:30 -07:00
op.create_index("ix_domain_domain", "domain", ["domain"], unique=True)