mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-09 06:32:11 -05:00
24 lines
516 B
Python
24 lines
516 B
Python
"""
|
|
|
|
Revision ID: 0309_add_uq_key_row_number
|
|
Revises: 0308_delete_loadtesting_provider
|
|
Create Date: 2019-11-05 10:12:03.627850
|
|
|
|
"""
|
|
from alembic import op
|
|
|
|
revision = "0309_add_uq_key_row_number"
|
|
down_revision = "0308_delete_loadtesting_provider"
|
|
|
|
|
|
def upgrade():
|
|
op.create_unique_constraint(
|
|
"uq_notifications_job_row_number", "notifications", ["job_id", "job_row_number"]
|
|
)
|
|
|
|
|
|
def downgrade():
|
|
op.drop_constraint(
|
|
"uq_notifications_job_row_number", "notifications", type_="unique"
|
|
)
|