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.

zerver: Move fts_update_log table id to bigint.

Alex Vandiver04022353fa20
diff --git a/zerver/migrations/0529_fts_bigint_id.py b/zerver/migrations/0529_fts_bigint_id.py
new file mode 100644
index 00000000000..48ce51296c0
--- /dev/null
+++ b/zerver/migrations/0529_fts_bigint_id.py
@@ -0,0 +1,20 @@
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ("zerver", "0528_realmauditlog_zerver_realmauditlog_user_activations_idx"),
+ ]
+
+ operations = [
+ migrations.RunSQL(
+ sql="alter table fts_update_log alter column id set data type bigint",
+ reverse_sql="alter table fts_update_log alter column id set data type int",
+ elidable=True,
+ ),
+ migrations.RunSQL(
+ sql="alter sequence fts_update_log_id_seq as bigint",
+ reverse_sql="alter sequence fts_update_log_id_seq as int",
+ elidable=True,
+ ),
+ ]