mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-11 18:38:14 -04:00
reformat
This commit is contained in:
@@ -8,14 +8,21 @@ Create Date: 2019-05-16 14:05:18.104274
|
||||
from alembic import op
|
||||
|
||||
|
||||
revision = '0293_drop_complaint_fk'
|
||||
down_revision = '0292_give_users_folder_perms'
|
||||
revision = "0293_drop_complaint_fk"
|
||||
down_revision = "0292_give_users_folder_perms"
|
||||
|
||||
|
||||
def upgrade():
|
||||
op.drop_constraint('complaints_notification_id_fkey', table_name='complaints', type_='foreignkey')
|
||||
op.drop_constraint(
|
||||
"complaints_notification_id_fkey", table_name="complaints", type_="foreignkey"
|
||||
)
|
||||
|
||||
|
||||
def downgrade():
|
||||
op.create_foreign_key('complaints_notification_id_fkey', 'complaints',
|
||||
'notification_history', ['notification_id'], ['id'])
|
||||
op.create_foreign_key(
|
||||
"complaints_notification_id_fkey",
|
||||
"complaints",
|
||||
"notification_history",
|
||||
["notification_id"],
|
||||
["id"],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user