fix debug statement in scheduled tasks

This commit is contained in:
Kenneth Kehl
2026-01-27 07:33:54 -08:00
parent 6ff3205f43
commit 0c10e1cdde
63 changed files with 230 additions and 464 deletions

View File

@@ -16,26 +16,22 @@ def upgrade():
op.drop_constraint(
"notifications_template_id_fkey", "notifications", type_="foreignkey"
)
op.execute(
"""
op.execute("""
ALTER TABLE notifications ADD CONSTRAINT "notifications_templates_history_fkey"
FOREIGN KEY ("template_id", "template_version") REFERENCES "templates_history" ("id", "version")
NOT VALID
"""
)
""")
op.drop_constraint(
"notification_history_template_id_fkey",
"notification_history",
type_="foreignkey",
)
op.execute(
"""
op.execute("""
ALTER TABLE notification_history ADD CONSTRAINT "notification_history_templates_history_fkey"
FOREIGN KEY ("template_id", "template_version") REFERENCES "templates_history" ("id", "version")
NOT VALID
"""
)
""")
def downgrade():