2019-05-21 16:08:18 +01:00
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
Revision ID: 0293_drop_complaint_fk
|
|
|
|
|
Revises: 0292_give_users_folder_perms
|
|
|
|
|
Create Date: 2019-05-16 14:05:18.104274
|
|
|
|
|
|
|
|
|
|
"""
|
2024-04-01 15:12:33 -07:00
|
|
|
|
2019-05-21 16:08:18 +01:00
|
|
|
from alembic import op
|
|
|
|
|
|
2023-08-29 14:54:30 -07:00
|
|
|
revision = "0293_drop_complaint_fk"
|
|
|
|
|
down_revision = "0292_give_users_folder_perms"
|
2019-05-21 16:08:18 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
def upgrade():
|
2023-08-29 14:54:30 -07:00
|
|
|
op.drop_constraint(
|
|
|
|
|
"complaints_notification_id_fkey", table_name="complaints", type_="foreignkey"
|
|
|
|
|
)
|
2019-05-21 16:08:18 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
def downgrade():
|
2023-08-29 14:54:30 -07:00
|
|
|
op.create_foreign_key(
|
|
|
|
|
"complaints_notification_id_fkey",
|
|
|
|
|
"complaints",
|
|
|
|
|
"notification_history",
|
|
|
|
|
["notification_id"],
|
|
|
|
|
["id"],
|
|
|
|
|
)
|