Files
notifications-api/migrations/versions/0018_remove_subject_uniqueness.py

27 lines
704 B
Python
Raw Normal View History

2016-05-18 10:00:09 +01:00
"""empty message
Revision ID: 0018_remove_subject_uniqueness
Revises: 0017_add_failure_types
Create Date: 2016-05-18 09:39:22.512042
"""
# revision identifiers, used by Alembic.
2023-08-29 14:54:30 -07:00
revision = "0018_remove_subject_uniqueness"
down_revision = "0017_add_failure_types"
2016-05-18 10:00:09 +01:00
import sqlalchemy as sa
from alembic import op
2016-05-18 10:00:09 +01:00
def upgrade():
### commands auto generated by Alembic - please adjust! ###
2023-08-29 14:54:30 -07:00
op.drop_constraint("templates_subject_key", "templates", type_="unique")
2016-05-18 10:00:09 +01:00
### end Alembic commands ###
def downgrade():
### commands auto generated by Alembic - please adjust! ###
2023-08-29 14:54:30 -07:00
op.create_unique_constraint("templates_subject_key", "templates", ["subject"])
2016-05-18 10:00:09 +01:00
### end Alembic commands ###