Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

migrations: Fix missing Literal() calls in 0564.

Alex Vandiver16dffeb9418b
diff --git a/zerver/migrations/0564_purge_nagios_messages.py b/zerver/migrations/0564_purge_nagios_messages.py
index f29297a3595..01137516f6c 100644
--- a/zerver/migrations/0564_purge_nagios_messages.py
+++ b/zerver/migrations/0564_purge_nagios_messages.py
@@ -47,9 +47,9 @@ def purge_nagios_messages(apps: StateApps, schema_editor: BaseDatabaseSchemaEdit
FOR UPDATE
"""
).format(
- realm_id=bot_realm.id,
- sender_id=sender_id,
- recipient_id=recipient_id,
+ realm_id=Literal(bot_realm.id),
+ sender_id=Literal(sender_id),
+ recipient_id=Literal(recipient_id),
batch_size=Literal(batch_size),
)
cursor.execute(message_id_query)