snapshot of https://github.com/zulip/zulip.git @ 48c69911c7dd4e03b20552eb3bd77ad8151c1357 (2026-09-15)
Some checks failed
Code scanning / CodeQL (push) Failing after 15s
Zulip production suite / Ubuntu 22.04 production build (push) Failing after 26s
Zulip production suite / Debian 12 production install with custom db name and user (push) Has been skipped
Zulip production suite / Ubuntu 22.04 production install and PostgreSQL upgrade with pgroonga (push) Has been skipped
Zulip production suite / Ubuntu 24.04 production install (push) Has been skipped
Zulip production suite / Ubuntu 26.04 production install (push) Has been skipped
Zulip production suite / Debian 13 production install (push) Has been skipped
Zulip production suite / 7.0 Version Upgrade (push) Has been skipped
Zulip production suite / 8.0 Version Upgrade (push) Has been skipped
Zulip production suite / 6.0 Version Upgrade (push) Has been skipped
Zulip production suite / 10.0 Version Upgrade (push) Has been skipped
Zulip production suite / 9.0 Version Upgrade (push) Has been skipped
Zulip production suite / 12.0 Version Upgrade (push) Has been skipped
Zulip production suite / 11.0 Version Upgrade (push) Has been skipped
GitHub Actions Security Analysis with zizmor / zizmor (push) Failing after 3s
Zulip CI / Debian 12 (Python 3.11, backend + documentation) (push) Failing after 26s
Zulip CI / Ubuntu 22.04 (Python 3.10, backend + frontend) (push) Failing after 3s
Zulip CI / Ubuntu 24.04 (Python 3.12, backend) (push) Failing after 25s
Zulip CI / Ubuntu 26.04 (Python 3.14, backend) (push) Failing after 25s
Zulip CI / Debian 13 (Python 3.13, backend) (push) Failing after 28s
Zulip production suite / Required jobs (push) Has been cancelled
Zulip CI / Required jobs (push) Has been cancelled
API Documentation Update Check / check-feature-level-updated (push) Has been cancelled
API Documentation Update Check / notify-if-api-docs-changed (push) Has been cancelled
Some checks failed
Code scanning / CodeQL (push) Failing after 15s
Zulip production suite / Ubuntu 22.04 production build (push) Failing after 26s
Zulip production suite / Debian 12 production install with custom db name and user (push) Has been skipped
Zulip production suite / Ubuntu 22.04 production install and PostgreSQL upgrade with pgroonga (push) Has been skipped
Zulip production suite / Ubuntu 24.04 production install (push) Has been skipped
Zulip production suite / Ubuntu 26.04 production install (push) Has been skipped
Zulip production suite / Debian 13 production install (push) Has been skipped
Zulip production suite / 7.0 Version Upgrade (push) Has been skipped
Zulip production suite / 8.0 Version Upgrade (push) Has been skipped
Zulip production suite / 6.0 Version Upgrade (push) Has been skipped
Zulip production suite / 10.0 Version Upgrade (push) Has been skipped
Zulip production suite / 9.0 Version Upgrade (push) Has been skipped
Zulip production suite / 12.0 Version Upgrade (push) Has been skipped
Zulip production suite / 11.0 Version Upgrade (push) Has been skipped
GitHub Actions Security Analysis with zizmor / zizmor (push) Failing after 3s
Zulip CI / Debian 12 (Python 3.11, backend + documentation) (push) Failing after 26s
Zulip CI / Ubuntu 22.04 (Python 3.10, backend + frontend) (push) Failing after 3s
Zulip CI / Ubuntu 24.04 (Python 3.12, backend) (push) Failing after 25s
Zulip CI / Ubuntu 26.04 (Python 3.14, backend) (push) Failing after 25s
Zulip CI / Debian 13 (Python 3.13, backend) (push) Failing after 28s
Zulip production suite / Required jobs (push) Has been cancelled
Zulip CI / Required jobs (push) Has been cancelled
API Documentation Update Check / check-feature-level-updated (push) Has been cancelled
API Documentation Update Check / notify-if-api-docs-changed (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
# Generated by Django 1.11.23 on 2019-08-23 21:03
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [
|
||||
("zerver", "0239_usermessage_copy_id_to_bigint_id"),
|
||||
]
|
||||
|
||||
# Note that this migration needs to work whether
|
||||
# zerver_usermessage.bigint_id was created as a serial column (for
|
||||
# Zulip initially installed with Django < 4.1) or an identity
|
||||
# column (for Zulip initially installed with Django ≥ 4.1). If
|
||||
# you need to edit it, remember to test both cases.
|
||||
|
||||
operations = [
|
||||
migrations.RunSQL(
|
||||
"""
|
||||
DROP TRIGGER zerver_usermessage_bigint_id_to_id_trigger ON zerver_usermessage;
|
||||
DROP FUNCTION zerver_usermessage_bigint_id_to_id_trigger_function();
|
||||
|
||||
ALTER TABLE zerver_usermessage
|
||||
ALTER COLUMN bigint_id SET NOT NULL,
|
||||
DROP CONSTRAINT zerver_usermessage_pkey,
|
||||
ALTER COLUMN id DROP IDENTITY IF EXISTS,
|
||||
ALTER COLUMN id DROP NOT NULL,
|
||||
ALTER COLUMN id DROP DEFAULT;
|
||||
ALTER TABLE zerver_usermessage RENAME COLUMN id TO id_old;
|
||||
ALTER TABLE zerver_usermessage RENAME COLUMN bigint_id TO id;
|
||||
DROP SEQUENCE IF EXISTS zerver_usermessage_id_seq;
|
||||
ALTER TABLE zerver_usermessage
|
||||
ADD CONSTRAINT zerver_usermessage_pkey PRIMARY KEY USING INDEX zerver_usermessage_bigint_id_idx,
|
||||
ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY;
|
||||
SELECT setval(
|
||||
'zerver_usermessage_id_seq',
|
||||
GREATEST(
|
||||
(SELECT max(id) FROM zerver_usermessage),
|
||||
(SELECT max(id) FROM zerver_archivedusermessage)
|
||||
)
|
||||
);
|
||||
""",
|
||||
state_operations=[
|
||||
# This just tells Django to understand executing the above SQL as if it just ran the operations below,
|
||||
# so that it knows these model changes are handled and doesn't to generate them on its own
|
||||
# in the future makemigration calls.
|
||||
migrations.RemoveField(
|
||||
model_name="usermessage",
|
||||
name="bigint_id",
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name="usermessage",
|
||||
name="id",
|
||||
field=models.BigAutoField(primary_key=True, serialize=False),
|
||||
),
|
||||
],
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user