Files
notifications-api/migrations/versions/0291_remove_unused_index.py
Cliff Hill 1157f5639d black, isort, flake8
Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
2023-12-08 21:43:52 -05:00

21 lines
417 B
Python

"""
Revision ID: 0291_remove_unused_index
Revises: 0290_org_go_live_notes
Create Date: 2019-05-16 14:05:18.104274
"""
import sqlalchemy as sa
from alembic import op
revision = "0291_remove_unused_index"
down_revision = "0290_org_go_live_notes"
def upgrade():
op.drop_index("ix_domain_domain", table_name="domain")
def downgrade():
op.create_index("ix_domain_domain", "domain", ["domain"], unique=True)