This commit is contained in:
Kenneth Kehl
2023-08-29 14:54:30 -07:00
parent 19dcd7a48b
commit 1ecb747c6d
588 changed files with 34100 additions and 23589 deletions

View File

@@ -7,13 +7,23 @@ Create Date: 2019-03-06 16:49:28.674498
"""
from alembic import op
revision = '0279_remove_fk_to_users'
down_revision = '0278_add_more_stuff_to_orgs'
revision = "0279_remove_fk_to_users"
down_revision = "0278_add_more_stuff_to_orgs"
def upgrade():
op.drop_constraint('notification_history_created_by_id_fkey', 'notification_history', type_='foreignkey')
op.drop_constraint(
"notification_history_created_by_id_fkey",
"notification_history",
type_="foreignkey",
)
def downgrade():
op.create_foreign_key('notification_history_created_by_id_fkey', 'notification_history', 'users', ['created_by_id'], ['id'])
op.create_foreign_key(
"notification_history_created_by_id_fkey",
"notification_history",
"users",
["created_by_id"],
["id"],
)