Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
migrations: Import BaseDatabaseSchemaEditor from its canonical module.
Anders Kaseorg0628c3cac8e3
diff --git a/analytics/migrations/0009_remove_messages_to_stream_stat.py b/analytics/migrations/0009_remove_messages_to_stream_stat.pyindex 252da4e6820..63b4e5cfcf7 100644--- a/analytics/migrations/0009_remove_messages_to_stream_stat.py+++ b/analytics/migrations/0009_remove_messages_to_stream_stat.py@@ -1,5 +1,5 @@from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/analytics/migrations/0010_clear_messages_sent_values.py b/analytics/migrations/0010_clear_messages_sent_values.pyindex 29ffcbf38f9..6eee10dd4c5 100644--- a/analytics/migrations/0010_clear_messages_sent_values.py+++ b/analytics/migrations/0010_clear_messages_sent_values.py@@ -1,5 +1,5 @@from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/analytics/migrations/0011_clear_analytics_tables.py b/analytics/migrations/0011_clear_analytics_tables.pyindex 87c690ee2f3..577d2788e70 100644--- a/analytics/migrations/0011_clear_analytics_tables.py+++ b/analytics/migrations/0011_clear_analytics_tables.py@@ -1,5 +1,5 @@from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/analytics/migrations/0015_clear_duplicate_counts.py b/analytics/migrations/0015_clear_duplicate_counts.pyindex 6eff286cc95..9a415fffef9 100644--- a/analytics/migrations/0015_clear_duplicate_counts.py+++ b/analytics/migrations/0015_clear_duplicate_counts.py@@ -1,5 +1,5 @@from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsfrom django.db.models import Count, Sumdiff --git a/confirmation/migrations/0009_confirmation_expiry_date_backfill.py b/confirmation/migrations/0009_confirmation_expiry_date_backfill.pyindex 23304be744b..b95cc3f7e78 100644--- a/confirmation/migrations/0009_confirmation_expiry_date_backfill.py+++ b/confirmation/migrations/0009_confirmation_expiry_date_backfill.py@@ -5,7 +5,7 @@ from datetime import timedeltafrom django.conf import settingsfrom django.db import migrations, transaction-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/pgroonga/migrations/0002_html_escape_subject.py b/pgroonga/migrations/0002_html_escape_subject.pyindex fd9b1af8192..27aa5fc5882 100644--- a/pgroonga/migrations/0002_html_escape_subject.py+++ b/pgroonga/migrations/0002_html_escape_subject.py@@ -1,5 +1,5 @@from django.db import connection, migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsfrom psycopg2.sql import SQLdiff --git a/zerver/migrations/0001_initial.py b/zerver/migrations/0001_initial.pyindex 05493644bb9..fa6fab3358a 100644--- a/zerver/migrations/0001_initial.py+++ b/zerver/migrations/0001_initial.py@@ -8,7 +8,7 @@ from django.conf import settingsfrom django.contrib.postgres.indexes import GinIndexfrom django.contrib.postgres.search import SearchVectorFieldfrom django.db import migrations, models-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsfrom django.db.models.functions import Upperdiff --git a/zerver/migrations/0029_realm_subdomain.py b/zerver/migrations/0029_realm_subdomain.pyindex 2953d22e4c2..3be40ec79e4 100644--- a/zerver/migrations/0029_realm_subdomain.py+++ b/zerver/migrations/0029_realm_subdomain.py@@ -1,7 +1,7 @@from django.conf import settingsfrom django.core.exceptions import ObjectDoesNotExistfrom django.db import migrations, models-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0032_verify_all_medium_avatar_images.py b/zerver/migrations/0032_verify_all_medium_avatar_images.pyindex 32d29aaa54e..8de2324a55d 100644--- a/zerver/migrations/0032_verify_all_medium_avatar_images.py+++ b/zerver/migrations/0032_verify_all_medium_avatar_images.py@@ -3,7 +3,7 @@ from unittest.mock import patchfrom django.conf import settingsfrom django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsfrom zerver.lib.upload import upload_backenddiff --git a/zerver/migrations/0033_migrate_domain_to_realmalias.py b/zerver/migrations/0033_migrate_domain_to_realmalias.pyindex ea85837d35f..45e8b13b6e2 100644--- a/zerver/migrations/0033_migrate_domain_to_realmalias.py+++ b/zerver/migrations/0033_migrate_domain_to_realmalias.py@@ -1,5 +1,5 @@from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0037_disallow_null_string_id.py b/zerver/migrations/0037_disallow_null_string_id.pyindex 86285ad10bb..9a9fc01cb7d 100644--- a/zerver/migrations/0037_disallow_null_string_id.py+++ b/zerver/migrations/0037_disallow_null_string_id.py@@ -1,5 +1,5 @@from django.db import migrations, models-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsfrom django.db.utils import IntegrityErrordiff --git a/zerver/migrations/0041_create_attachments_for_old_messages.py b/zerver/migrations/0041_create_attachments_for_old_messages.pyindex f334e72a53c..f9fd4ac39da 100644--- a/zerver/migrations/0041_create_attachments_for_old_messages.py+++ b/zerver/migrations/0041_create_attachments_for_old_messages.py@@ -2,7 +2,7 @@ import osimport refrom django.db import migrations, models-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsattachment_url_re = re.compile(r"[/\-]user[\-_]uploads[/\.-].*?(?=[ )]|\Z)")diff --git a/zerver/migrations/0057_realmauditlog.py b/zerver/migrations/0057_realmauditlog.pyindex 32d60621a90..d254787e08f 100644--- a/zerver/migrations/0057_realmauditlog.py+++ b/zerver/migrations/0057_realmauditlog.py@@ -2,7 +2,7 @@import django.db.models.deletionfrom django.conf import settingsfrom django.db import migrations, models-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsfrom django.utils.timezone import now as timezone_nowdiff --git a/zerver/migrations/0074_fix_duplicate_attachments.py b/zerver/migrations/0074_fix_duplicate_attachments.pyindex fc63174a823..0f538a749d9 100644--- a/zerver/migrations/0074_fix_duplicate_attachments.py+++ b/zerver/migrations/0074_fix_duplicate_attachments.py@@ -1,6 +1,6 @@# Generated by Django 1.10.5 on 2017-04-13 22:12from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsfrom django.db.models import Countdiff --git a/zerver/migrations/0079_remove_old_scheduled_jobs.py b/zerver/migrations/0079_remove_old_scheduled_jobs.pyindex 9ec157934c6..5e24ae6b885 100644--- a/zerver/migrations/0079_remove_old_scheduled_jobs.py+++ b/zerver/migrations/0079_remove_old_scheduled_jobs.py@@ -1,6 +1,6 @@# Generated by Django 1.10.5 on 2017-05-10 05:59from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0081_make_emoji_lowercase.py b/zerver/migrations/0081_make_emoji_lowercase.pyindex e7b87c5cd1b..e8839dd6011 100644--- a/zerver/migrations/0081_make_emoji_lowercase.py+++ b/zerver/migrations/0081_make_emoji_lowercase.py@@ -1,7 +1,7 @@# Generated by Django 1.10.5 on 2017-05-02 21:44import django.core.validatorsfrom django.db import migrations, models-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0085_fix_bots_with_none_bot_type.py b/zerver/migrations/0085_fix_bots_with_none_bot_type.pyindex ae2265d4a85..d2556a64ebf 100644--- a/zerver/migrations/0085_fix_bots_with_none_bot_type.py+++ b/zerver/migrations/0085_fix_bots_with_none_bot_type.py@@ -1,6 +1,6 @@# Generated by Django 1.11.2 on 2017-06-20 10:31from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0087_remove_old_scheduled_jobs.py b/zerver/migrations/0087_remove_old_scheduled_jobs.pyindex 4a7b49153fc..7ffff5a4cea 100644--- a/zerver/migrations/0087_remove_old_scheduled_jobs.py+++ b/zerver/migrations/0087_remove_old_scheduled_jobs.py@@ -1,6 +1,6 @@# Generated by Django 1.10.5 on 2017-05-10 05:59from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0093_subscription_event_log_backfill.py b/zerver/migrations/0093_subscription_event_log_backfill.pyindex 25d6ad355c2..85ff7d92f94 100644--- a/zerver/migrations/0093_subscription_event_log_backfill.py+++ b/zerver/migrations/0093_subscription_event_log_backfill.py@@ -1,5 +1,5 @@from django.db import migrations, models-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsfrom django.db.models import Maxfrom django.utils.timezone import now as timezone_nowdiff --git a/zerver/migrations/0097_reactions_emoji_code.py b/zerver/migrations/0097_reactions_emoji_code.pyindex b6dbfbf0db3..23fde3969f4 100644--- a/zerver/migrations/0097_reactions_emoji_code.py+++ b/zerver/migrations/0097_reactions_emoji_code.py@@ -3,7 +3,7 @@ import osimport orjsonfrom django.db import migrations, models-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0102_convert_muted_topic.py b/zerver/migrations/0102_convert_muted_topic.pyindex 8ea8ba98526..41cd7727603 100644--- a/zerver/migrations/0102_convert_muted_topic.py+++ b/zerver/migrations/0102_convert_muted_topic.py@@ -1,7 +1,7 @@# Generated by Django 1.11.4 on 2017-08-30 00:26import orjsonfrom django.db import connection, migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsfrom psycopg2.sql import SQLdiff --git a/zerver/migrations/0104_fix_unreads.py b/zerver/migrations/0104_fix_unreads.pyindex 1886f198cf7..25496ecdba9 100644--- a/zerver/migrations/0104_fix_unreads.py+++ b/zerver/migrations/0104_fix_unreads.py@@ -1,6 +1,6 @@# Generated by Django 1.11.4 on 2017-08-30 00:26from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsfrom zerver.lib.fix_unreads import fixdiff --git a/zerver/migrations/0108_fix_default_string_id.py b/zerver/migrations/0108_fix_default_string_id.pyindex 4428a9c7b21..ccb4bdf0a7c 100644--- a/zerver/migrations/0108_fix_default_string_id.py+++ b/zerver/migrations/0108_fix_default_string_id.py@@ -1,6 +1,6 @@# Generated by Django 1.11.4 on 2017-08-24 02:39from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0109_mark_tutorial_status_finished.py b/zerver/migrations/0109_mark_tutorial_status_finished.pyindex 13b3b48d2de..e801f2a8722 100644--- a/zerver/migrations/0109_mark_tutorial_status_finished.py+++ b/zerver/migrations/0109_mark_tutorial_status_finished.py@@ -1,5 +1,5 @@from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0110_stream_is_in_zephyr_realm.py b/zerver/migrations/0110_stream_is_in_zephyr_realm.pyindex 7ea0f94da3d..10e6afdd1fa 100644--- a/zerver/migrations/0110_stream_is_in_zephyr_realm.py+++ b/zerver/migrations/0110_stream_is_in_zephyr_realm.py@@ -1,6 +1,6 @@# Generated by Django 1.11.5 on 2017-10-08 18:37from django.db import migrations, models-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0121_realm_signup_notifications_stream.py b/zerver/migrations/0121_realm_signup_notifications_stream.pyindex 006af03256b..e856cb25738 100644--- a/zerver/migrations/0121_realm_signup_notifications_stream.py+++ b/zerver/migrations/0121_realm_signup_notifications_stream.py@@ -2,7 +2,7 @@import django.db.models.deletionfrom django.db import migrations, models-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0126_prereg_remove_users_without_realm.py b/zerver/migrations/0126_prereg_remove_users_without_realm.pyindex 8fa2365cc47..fb106d5f2f9 100644--- a/zerver/migrations/0126_prereg_remove_users_without_realm.py+++ b/zerver/migrations/0126_prereg_remove_users_without_realm.py@@ -1,7 +1,7 @@# Generated by Django 1.11.6 on 2017-11-30 04:58from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0128_scheduledemail_realm.py b/zerver/migrations/0128_scheduledemail_realm.pyindex 372028215f4..d9dbf4bac2c 100644--- a/zerver/migrations/0128_scheduledemail_realm.py+++ b/zerver/migrations/0128_scheduledemail_realm.py@@ -2,7 +2,7 @@import django.db.models.deletionfrom django.db import migrations, models-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0130_text_choice_in_emojiset.py b/zerver/migrations/0130_text_choice_in_emojiset.pyindex 49ba4c9471f..0fb0fae8e94 100644--- a/zerver/migrations/0130_text_choice_in_emojiset.py+++ b/zerver/migrations/0130_text_choice_in_emojiset.py@@ -1,5 +1,5 @@from django.db import migrations, models-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0139_fill_last_message_id_in_subscription_logs.py b/zerver/migrations/0139_fill_last_message_id_in_subscription_logs.pyindex 3af1cb184dd..82ad0f8ad51 100644--- a/zerver/migrations/0139_fill_last_message_id_in_subscription_logs.py+++ b/zerver/migrations/0139_fill_last_message_id_in_subscription_logs.py@@ -1,5 +1,5 @@from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0143_realm_bot_creation_policy.py b/zerver/migrations/0143_realm_bot_creation_policy.pyindex ef163298754..e1dfc1f8927 100644--- a/zerver/migrations/0143_realm_bot_creation_policy.py+++ b/zerver/migrations/0143_realm_bot_creation_policy.py@@ -1,6 +1,6 @@# Generated by Django 1.11.6 on 2018-03-09 18:00from django.db import migrations, models-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsBOT_CREATION_EVERYONE = 1diff --git a/zerver/migrations/0145_reactions_realm_emoji_name_to_id.py b/zerver/migrations/0145_reactions_realm_emoji_name_to_id.pyindex 2e6a3446ed5..12322ceef59 100644--- a/zerver/migrations/0145_reactions_realm_emoji_name_to_id.py+++ b/zerver/migrations/0145_reactions_realm_emoji_name_to_id.py@@ -2,7 +2,7 @@ from collections import defaultdictfrom typing import Any, Dictfrom django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0149_realm_emoji_drop_unique_constraint.py b/zerver/migrations/0149_realm_emoji_drop_unique_constraint.pyindex 837da73a76a..51a1172a057 100644--- a/zerver/migrations/0149_realm_emoji_drop_unique_constraint.py+++ b/zerver/migrations/0149_realm_emoji_drop_unique_constraint.py@@ -4,7 +4,7 @@ import shutilimport boto3.sessionfrom django.conf import settingsfrom django.db import migrations, models-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsfrom mypy_boto3_s3.type_defs import CopySourceTypeDefdiff --git a/zerver/migrations/0154_fix_invalid_bot_owner.py b/zerver/migrations/0154_fix_invalid_bot_owner.pyindex 29d664cd0d1..602ba417e44 100644--- a/zerver/migrations/0154_fix_invalid_bot_owner.py+++ b/zerver/migrations/0154_fix_invalid_bot_owner.py@@ -1,7 +1,7 @@# Generated by Django 1.11.6 on 2018-04-03 01:52from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0164_stream_history_public_to_subscribers.py b/zerver/migrations/0164_stream_history_public_to_subscribers.pyindex 5c60b1c9e9b..d4b4cc39060 100644--- a/zerver/migrations/0164_stream_history_public_to_subscribers.py+++ b/zerver/migrations/0164_stream_history_public_to_subscribers.py@@ -2,7 +2,7 @@from django.conf import settingsfrom django.db import migrations, models-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0167_custom_profile_fields_sort_order.py b/zerver/migrations/0167_custom_profile_fields_sort_order.pyindex b592cdc9b7a..30ddaae662c 100644--- a/zerver/migrations/0167_custom_profile_fields_sort_order.py+++ b/zerver/migrations/0167_custom_profile_fields_sort_order.py@@ -1,7 +1,7 @@# Generated by Django 1.11.11 on 2018-04-08 15:49from django.db import migrations, models-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsfrom django.db.models import Fdiff --git a/zerver/migrations/0174_userprofile_delivery_email.py b/zerver/migrations/0174_userprofile_delivery_email.pyindex 970bee6fbf8..e2f2fc9e888 100644--- a/zerver/migrations/0174_userprofile_delivery_email.py+++ b/zerver/migrations/0174_userprofile_delivery_email.py@@ -1,7 +1,7 @@# Generated by Django 1.11.13 on 2018-07-05 17:57from django.db import migrations, models-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsfrom django.db.models import Fdiff --git a/zerver/migrations/0175_change_realm_audit_log_event_type_tense.py b/zerver/migrations/0175_change_realm_audit_log_event_type_tense.pyindex 8977ef64d9a..bfdb494e00e 100644--- a/zerver/migrations/0175_change_realm_audit_log_event_type_tense.py+++ b/zerver/migrations/0175_change_realm_audit_log_event_type_tense.py@@ -1,5 +1,5 @@from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0177_user_message_add_and_index_is_private_flag.py b/zerver/migrations/0177_user_message_add_and_index_is_private_flag.pyindex 6ed6c07bed2..bcc1bc354c4 100644--- a/zerver/migrations/0177_user_message_add_and_index_is_private_flag.py+++ b/zerver/migrations/0177_user_message_add_and_index_is_private_flag.py@@ -2,7 +2,7 @@import bitfield.modelsfrom django.db import migrations, models-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsfrom django.db.models import F, Qdiff --git a/zerver/migrations/0181_userprofile_change_emojiset.py b/zerver/migrations/0181_userprofile_change_emojiset.pyindex ded86af7cc0..d9629517dfc 100644--- a/zerver/migrations/0181_userprofile_change_emojiset.py+++ b/zerver/migrations/0181_userprofile_change_emojiset.py@@ -1,5 +1,5 @@from django.db import migrations, models-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0182_set_initial_value_is_private_flag.py b/zerver/migrations/0182_set_initial_value_is_private_flag.pyindex 5d5377d1218..35f7c71d740 100644--- a/zerver/migrations/0182_set_initial_value_is_private_flag.py+++ b/zerver/migrations/0182_set_initial_value_is_private_flag.py@@ -1,5 +1,5 @@from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsfrom django.db.models import Fdiff --git a/zerver/migrations/0189_userprofile_add_some_emojisets.py b/zerver/migrations/0189_userprofile_add_some_emojisets.pyindex e0c583afe29..c8bbbb17d2c 100644--- a/zerver/migrations/0189_userprofile_add_some_emojisets.py+++ b/zerver/migrations/0189_userprofile_add_some_emojisets.py@@ -1,7 +1,7 @@# Generated by Django 1.11.14 on 2018-08-28 19:01from django.db import migrations, models-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0198_preregistrationuser_invited_as.py b/zerver/migrations/0198_preregistrationuser_invited_as.pyindex fe21709ec54..9508f903b36 100644--- a/zerver/migrations/0198_preregistrationuser_invited_as.py+++ b/zerver/migrations/0198_preregistrationuser_invited_as.py@@ -1,7 +1,7 @@# Generated by Django 1.11.16 on 2018-12-27 17:09from django.db import migrations, models-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0206_stream_rendered_description.py b/zerver/migrations/0206_stream_rendered_description.pyindex 51290c09d62..b303015b5b7 100644--- a/zerver/migrations/0206_stream_rendered_description.py+++ b/zerver/migrations/0206_stream_rendered_description.py@@ -1,5 +1,5 @@from django.db import migrations, models-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0209_user_profile_no_empty_password.py b/zerver/migrations/0209_user_profile_no_empty_password.pyindex 053ad36025f..67276d2e9e5 100644--- a/zerver/migrations/0209_user_profile_no_empty_password.py+++ b/zerver/migrations/0209_user_profile_no_empty_password.py@@ -6,7 +6,7 @@ import orjsonfrom django.conf import settingsfrom django.contrib.auth.hashers import check_password, make_passwordfrom django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsfrom django.utils.timezone import now as timezone_nowdiff --git a/zerver/migrations/0210_stream_first_message_id.py b/zerver/migrations/0210_stream_first_message_id.pyindex 61ec59b8eca..7d751f239c0 100644--- a/zerver/migrations/0210_stream_first_message_id.py+++ b/zerver/migrations/0210_stream_first_message_id.py@@ -1,7 +1,7 @@# Generated by Django 1.11.18 on 2019-02-25 12:42from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0211_add_users_field_to_scheduled_email.py b/zerver/migrations/0211_add_users_field_to_scheduled_email.pyindex 96da6360ed6..71c99cefb86 100644--- a/zerver/migrations/0211_add_users_field_to_scheduled_email.py+++ b/zerver/migrations/0211_add_users_field_to_scheduled_email.py@@ -2,7 +2,7 @@from django.conf import settingsfrom django.db import migrations, models-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0214_realm_invite_to_stream_policy.py b/zerver/migrations/0214_realm_invite_to_stream_policy.pyindex 087abfef2be..44af4b08998 100644--- a/zerver/migrations/0214_realm_invite_to_stream_policy.py+++ b/zerver/migrations/0214_realm_invite_to_stream_policy.py@@ -1,6 +1,6 @@# Generated by Django 1.11.20 on 2019-04-29 05:29from django.db import migrations, models-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsINVITE_TO_STREAM_POLICY_MEMBERS = 1diff --git a/zerver/migrations/0217_migrate_create_stream_policy.py b/zerver/migrations/0217_migrate_create_stream_policy.pyindex 25d4349c555..5bd1d647688 100644--- a/zerver/migrations/0217_migrate_create_stream_policy.py+++ b/zerver/migrations/0217_migrate_create_stream_policy.py@@ -1,7 +1,7 @@# Generated by Django 1.11.20 on 2019-05-06 13:15from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0219_toggle_realm_digest_emails_enabled_default.py b/zerver/migrations/0219_toggle_realm_digest_emails_enabled_default.pyindex 49468062c93..cf8e2878cba 100644--- a/zerver/migrations/0219_toggle_realm_digest_emails_enabled_default.py+++ b/zerver/migrations/0219_toggle_realm_digest_emails_enabled_default.py@@ -1,7 +1,7 @@# Generated by Django 1.11.20 on 2019-05-08 05:42from django.db import migrations, models-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0221_subscription_notifications_data_migration.py b/zerver/migrations/0221_subscription_notifications_data_migration.pyindex acfba9f4ef4..2fb93ed1ab2 100644--- a/zerver/migrations/0221_subscription_notifications_data_migration.py+++ b/zerver/migrations/0221_subscription_notifications_data_migration.py@@ -1,7 +1,7 @@# Generated by Django 1.11.18 on 2019-02-13 20:13from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsRECIPIENT_STREAM = 2diff --git a/zerver/migrations/0223_rename_to_is_muted.py b/zerver/migrations/0223_rename_to_is_muted.pyindex 0c7e70ce84f..235f0f18d24 100644--- a/zerver/migrations/0223_rename_to_is_muted.py+++ b/zerver/migrations/0223_rename_to_is_muted.py@@ -1,7 +1,7 @@# Generated by Django 1.11.14 on 2018-08-10 16:04from django.db import migrations, models-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsfrom django.db.models import Case, Value, Whendiff --git a/zerver/migrations/0224_alter_field_realm_video_chat_provider.py b/zerver/migrations/0224_alter_field_realm_video_chat_provider.pyindex 9d168e49a87..a897ea58e8d 100644--- a/zerver/migrations/0224_alter_field_realm_video_chat_provider.py+++ b/zerver/migrations/0224_alter_field_realm_video_chat_provider.py@@ -3,7 +3,7 @@from typing import Any, Dict, Optionalfrom django.db import migrations, models-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateApps# We include a copy of this structure as it was at the time thisdiff --git a/zerver/migrations/0227_inline_url_embed_preview_default_off.py b/zerver/migrations/0227_inline_url_embed_preview_default_off.pyindex e8d4e39a34a..ef3e6d20791 100644--- a/zerver/migrations/0227_inline_url_embed_preview_default_off.py+++ b/zerver/migrations/0227_inline_url_embed_preview_default_off.py@@ -1,7 +1,7 @@# Generated by Django 1.11.20 on 2019-05-31 02:33from django.db import migrations, models-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0236_remove_illegal_characters_email_full.py b/zerver/migrations/0236_remove_illegal_characters_email_full.pyindex d79aea18449..cdc066b27b4 100644--- a/zerver/migrations/0236_remove_illegal_characters_email_full.py+++ b/zerver/migrations/0236_remove_illegal_characters_email_full.py@@ -3,7 +3,7 @@from unicodedata import categoryfrom django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsNAME_INVALID_CHARS = ["*", "`", "\\", ">", '"', "@"]diff --git a/zerver/migrations/0237_rename_zulip_realm_to_zulipinternal.py b/zerver/migrations/0237_rename_zulip_realm_to_zulipinternal.pyindex c0e6f1c4201..a7a02b9a38a 100644--- a/zerver/migrations/0237_rename_zulip_realm_to_zulipinternal.py+++ b/zerver/migrations/0237_rename_zulip_realm_to_zulipinternal.py@@ -1,6 +1,6 @@from django.conf import settingsfrom django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0239_usermessage_copy_id_to_bigint_id.py b/zerver/migrations/0239_usermessage_copy_id_to_bigint_id.pyindex 0cf4045c916..e77cd0ce223 100644--- a/zerver/migrations/0239_usermessage_copy_id_to_bigint_id.py+++ b/zerver/migrations/0239_usermessage_copy_id_to_bigint_id.py@@ -3,7 +3,7 @@import timefrom django.db import connection, migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsfrom django.db.models import Minfrom psycopg2.sql import SQLdiff --git a/zerver/migrations/0242_fix_bot_email_property.py b/zerver/migrations/0242_fix_bot_email_property.pyindex 857401cadfd..a3b92ee5c7f 100644--- a/zerver/migrations/0242_fix_bot_email_property.py+++ b/zerver/migrations/0242_fix_bot_email_property.py@@ -1,7 +1,7 @@# Generated by Django 1.11.24 on 2019-09-23 20:39from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0244_message_copy_pub_date_to_date_sent.py b/zerver/migrations/0244_message_copy_pub_date_to_date_sent.pyindex 59f855eab70..bc31afd5f9d 100644--- a/zerver/migrations/0244_message_copy_pub_date_to_date_sent.py+++ b/zerver/migrations/0244_message_copy_pub_date_to_date_sent.py@@ -2,7 +2,7 @@ import timefrom django.contrib.postgres.operations import AddIndexConcurrentlyfrom django.db import connection, migrations, models-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsfrom django.db.models import Minfrom psycopg2.sql import SQLdiff --git a/zerver/migrations/0247_realmauditlog_event_type_to_int.py b/zerver/migrations/0247_realmauditlog_event_type_to_int.pyindex 7bd6bca3744..5d344c22f72 100644--- a/zerver/migrations/0247_realmauditlog_event_type_to_int.py+++ b/zerver/migrations/0247_realmauditlog_event_type_to_int.py@@ -1,7 +1,7 @@# Generated by Django 1.11.24 on 2019-10-02 16:48from django.db import migrations, models-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsINT_VALUE = {diff --git a/zerver/migrations/0248_userprofile_role_start.py b/zerver/migrations/0248_userprofile_role_start.pyindex 6e31eb8e4f2..ffc4744436f 100644--- a/zerver/migrations/0248_userprofile_role_start.py+++ b/zerver/migrations/0248_userprofile_role_start.py@@ -1,6 +1,6 @@# Generated by Django 1.11.24 on 2019-10-03 22:27from django.db import migrations, models-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0257_fix_has_link_attribute.py b/zerver/migrations/0257_fix_has_link_attribute.pyindex 253282e742e..2c114783541 100644--- a/zerver/migrations/0257_fix_has_link_attribute.py+++ b/zerver/migrations/0257_fix_has_link_attribute.py@@ -5,7 +5,7 @@ from typing import castimport lxmlfrom django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsBATCH_SIZE = 1000diff --git a/zerver/migrations/0260_missed_message_addresses_from_redis_to_db.py b/zerver/migrations/0260_missed_message_addresses_from_redis_to_db.pyindex ba5bebb1666..f13b2bcbbf2 100644--- a/zerver/migrations/0260_missed_message_addresses_from_redis_to_db.py+++ b/zerver/migrations/0260_missed_message_addresses_from_redis_to_db.py@@ -2,7 +2,7 @@ import secretsfrom django.core.exceptions import ObjectDoesNotExistfrom django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateApps# Imported to avoid needing to duplicate Redis-related code.diff --git a/zerver/migrations/0261_pregistrationuser_clear_invited_as_admin.py b/zerver/migrations/0261_pregistrationuser_clear_invited_as_admin.pyindex fe1ed4a862a..42dc704bcc0 100644--- a/zerver/migrations/0261_pregistrationuser_clear_invited_as_admin.py+++ b/zerver/migrations/0261_pregistrationuser_clear_invited_as_admin.py@@ -1,7 +1,7 @@# Generated by Django 1.11.26 on 2020-06-16 22:26from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0264_migrate_is_announcement_only.py b/zerver/migrations/0264_migrate_is_announcement_only.pyindex 9c0e6090a8b..2dc2c77e583 100644--- a/zerver/migrations/0264_migrate_is_announcement_only.py+++ b/zerver/migrations/0264_migrate_is_announcement_only.py@@ -1,7 +1,7 @@# Generated by Django 1.11.26 on 2020-01-25 23:47from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0273_migrate_old_bot_messages.py b/zerver/migrations/0273_migrate_old_bot_messages.pyindex 5b03c4a288a..e9067eb67c6 100644--- a/zerver/migrations/0273_migrate_old_bot_messages.py+++ b/zerver/migrations/0273_migrate_old_bot_messages.py@@ -2,7 +2,7 @@ from typing import Anyfrom django.conf import settingsfrom django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0277_migrate_alert_word.py b/zerver/migrations/0277_migrate_alert_word.pyindex aebefd93e9a..6e61d7a5975 100644--- a/zerver/migrations/0277_migrate_alert_word.py+++ b/zerver/migrations/0277_migrate_alert_word.py@@ -2,7 +2,7 @@ from typing import Dict, Listimport orjsonfrom django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0284_convert_realm_admins_to_realm_owners.py b/zerver/migrations/0284_convert_realm_admins_to_realm_owners.pyindex 7c252202c78..211fdf8c1ab 100644--- a/zerver/migrations/0284_convert_realm_admins_to_realm_owners.py+++ b/zerver/migrations/0284_convert_realm_admins_to_realm_owners.py@@ -3,7 +3,7 @@ from typing import Any, Dictimport orjsonfrom django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsfrom django.db.models import Countfrom django.utils.timezone import now as timezone_nowdiff --git a/zerver/migrations/0285_remove_realm_google_hangouts_domain.py b/zerver/migrations/0285_remove_realm_google_hangouts_domain.pyindex 42752598d33..77634c0198a 100644--- a/zerver/migrations/0285_remove_realm_google_hangouts_domain.py+++ b/zerver/migrations/0285_remove_realm_google_hangouts_domain.py@@ -1,7 +1,7 @@# Generated by Django 2.2.13 on 2020-06-14 01:58from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsVIDEO_CHAT_PROVIDERS = {diff --git a/zerver/migrations/0287_clear_duplicate_reactions.py b/zerver/migrations/0287_clear_duplicate_reactions.pyindex 0284fa2ad6e..20fe0d52d94 100644--- a/zerver/migrations/0287_clear_duplicate_reactions.py+++ b/zerver/migrations/0287_clear_duplicate_reactions.py@@ -1,5 +1,5 @@from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsfrom django.db.models import Countdiff --git a/zerver/migrations/0290_remove_night_mode_add_color_scheme.py b/zerver/migrations/0290_remove_night_mode_add_color_scheme.pyindex e43275411f6..b2e7a7066a4 100644--- a/zerver/migrations/0290_remove_night_mode_add_color_scheme.py+++ b/zerver/migrations/0290_remove_night_mode_add_color_scheme.py@@ -1,7 +1,7 @@# Generated by Django 2.2.13 on 2020-06-20 15:22from django.db import migrations, models-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsCOLOR_SCHEME_AUTOMATIC = 1diff --git a/zerver/migrations/0293_update_invite_as_dict_values.py b/zerver/migrations/0293_update_invite_as_dict_values.pyindex 244e87d7ad6..29dd76ea9e6 100644--- a/zerver/migrations/0293_update_invite_as_dict_values.py+++ b/zerver/migrations/0293_update_invite_as_dict_values.py@@ -1,7 +1,7 @@# Generated by Django 2.2.13 on 2020-06-21 21:13from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0298_fix_realmauditlog_format.py b/zerver/migrations/0298_fix_realmauditlog_format.pyindex 292ecbf17f4..d63496e9916 100644--- a/zerver/migrations/0298_fix_realmauditlog_format.py+++ b/zerver/migrations/0298_fix_realmauditlog_format.py@@ -3,7 +3,7 @@import jsonfrom django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0304_remove_default_status_of_default_private_streams.py b/zerver/migrations/0304_remove_default_status_of_default_private_streams.pyindex e61a4cafe3a..c9c8ec945c8 100644--- a/zerver/migrations/0304_remove_default_status_of_default_private_streams.py+++ b/zerver/migrations/0304_remove_default_status_of_default_private_streams.py@@ -1,7 +1,7 @@# Generated by Django 2.2.14 on 2020-08-10 20:21from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0313_finish_is_user_active_migration.py b/zerver/migrations/0313_finish_is_user_active_migration.pyindex 1024e4701e5..d4bbffa7089 100644--- a/zerver/migrations/0313_finish_is_user_active_migration.py+++ b/zerver/migrations/0313_finish_is_user_active_migration.py@@ -2,7 +2,7 @@from django.contrib.postgres.operations import AddIndexConcurrentlyfrom django.db import connection, migrations, models-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0317_migrate_to_invite_to_realm_policy.py b/zerver/migrations/0317_migrate_to_invite_to_realm_policy.pyindex a085c17b23e..e77481fcd3b 100644--- a/zerver/migrations/0317_migrate_to_invite_to_realm_policy.py+++ b/zerver/migrations/0317_migrate_to_invite_to_realm_policy.py@@ -1,7 +1,7 @@# Generated by Django 3.1.7 on 2021-04-01 19:27from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0322_realm_create_audit_log_backfill.py b/zerver/migrations/0322_realm_create_audit_log_backfill.pyindex f143cd4df68..0e00ddde823 100644--- a/zerver/migrations/0322_realm_create_audit_log_backfill.py+++ b/zerver/migrations/0322_realm_create_audit_log_backfill.py@@ -1,7 +1,7 @@# Generated by Django 3.1.8 on 2021-04-20 10:09from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0323_show_starred_message_counts.py b/zerver/migrations/0323_show_starred_message_counts.pyindex 8eb5949f430..bd4d7be19d8 100644--- a/zerver/migrations/0323_show_starred_message_counts.py+++ b/zerver/migrations/0323_show_starred_message_counts.py@@ -1,7 +1,7 @@# Generated by Django 3.1.8 on 2021-05-01 12:34from django.db import migrations, models-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0328_migrate_to_edit_topic_policy.py b/zerver/migrations/0328_migrate_to_edit_topic_policy.pyindex ff3cbbed971..5155e6b76e3 100644--- a/zerver/migrations/0328_migrate_to_edit_topic_policy.py+++ b/zerver/migrations/0328_migrate_to_edit_topic_policy.py@@ -1,7 +1,7 @@# Generated by Django 3.2.2 on 2021-05-26 09:43from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0333_alter_realm_org_type.py b/zerver/migrations/0333_alter_realm_org_type.pyindex 12198de2331..0875e8f1889 100644--- a/zerver/migrations/0333_alter_realm_org_type.py+++ b/zerver/migrations/0333_alter_realm_org_type.py@@ -1,7 +1,7 @@# Generated by Django 3.2.4 on 2021-07-06 20:34from django.db import migrations, models-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0338_migrate_to_add_custom_emoji_policy.py b/zerver/migrations/0338_migrate_to_add_custom_emoji_policy.pyindex 0ff6abf9d8f..0826b30d5ee 100644--- a/zerver/migrations/0338_migrate_to_add_custom_emoji_policy.py+++ b/zerver/migrations/0338_migrate_to_add_custom_emoji_policy.py@@ -1,7 +1,7 @@# Generated by Django 3.2.2 on 2021-05-15 18:01from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0345_alter_realm_name.py b/zerver/migrations/0345_alter_realm_name.pyindex a6c8f52b906..8829a47b1b0 100644--- a/zerver/migrations/0345_alter_realm_name.py+++ b/zerver/migrations/0345_alter_realm_name.py@@ -2,7 +2,7 @@from django.conf import settingsfrom django.db import migrations, models-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0346_create_realm_user_default_table.py b/zerver/migrations/0346_create_realm_user_default_table.pyindex 77c6c0aa919..80d40dcf3ae 100644--- a/zerver/migrations/0346_create_realm_user_default_table.py+++ b/zerver/migrations/0346_create_realm_user_default_table.py@@ -1,7 +1,7 @@# Generated by Django 3.2.2 on 2021-06-01 16:19from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0352_migrate_twenty_four_hour_time_to_realmuserdefault.py b/zerver/migrations/0352_migrate_twenty_four_hour_time_to_realmuserdefault.pyindex 77c45f5bd37..65796ec9a08 100644--- a/zerver/migrations/0352_migrate_twenty_four_hour_time_to_realmuserdefault.py+++ b/zerver/migrations/0352_migrate_twenty_four_hour_time_to_realmuserdefault.py@@ -1,7 +1,7 @@# Generated by Django 3.2.6 on 2021-09-17 17:08from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsfrom django.db.models import Fdiff --git a/zerver/migrations/0354_alter_realm_message_content_delete_limit_seconds.py b/zerver/migrations/0354_alter_realm_message_content_delete_limit_seconds.pyindex 17aaaad4028..edd2d64a684 100644--- a/zerver/migrations/0354_alter_realm_message_content_delete_limit_seconds.py+++ b/zerver/migrations/0354_alter_realm_message_content_delete_limit_seconds.py@@ -1,7 +1,7 @@# Generated by Django 3.2.4 on 2021-06-14 12:12from django.db import migrations, models-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0356_migrate_to_delete_own_message_policy.py b/zerver/migrations/0356_migrate_to_delete_own_message_policy.pyindex dae1186f13d..800a5124eb0 100644--- a/zerver/migrations/0356_migrate_to_delete_own_message_policy.py+++ b/zerver/migrations/0356_migrate_to_delete_own_message_policy.py@@ -1,7 +1,7 @@# Generated by Django 3.2.4 on 2021-06-09 10:02from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0358_split_create_stream_policy.py b/zerver/migrations/0358_split_create_stream_policy.pyindex 506b9b6e71e..32ddaa604c9 100644--- a/zerver/migrations/0358_split_create_stream_policy.py+++ b/zerver/migrations/0358_split_create_stream_policy.py@@ -1,5 +1,5 @@from django.db import migrations, models-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsfrom django.db.models import Fdiff --git a/zerver/migrations/0359_re2_linkifiers.py b/zerver/migrations/0359_re2_linkifiers.pyindex 27a1de77ad0..1639520b591 100644--- a/zerver/migrations/0359_re2_linkifiers.py+++ b/zerver/migrations/0359_re2_linkifiers.py@@ -1,6 +1,6 @@import re2from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0371_invalid_characters_in_topics.py b/zerver/migrations/0371_invalid_characters_in_topics.pyindex 590b1f56c24..80a31650e91 100644--- a/zerver/migrations/0371_invalid_characters_in_topics.py+++ b/zerver/migrations/0371_invalid_characters_in_topics.py@@ -1,7 +1,7 @@import unicodedatafrom django.db import connection, migrations, models-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateApps# There are 66 Unicode non-characters; seediff --git a/zerver/migrations/0373_fix_deleteduser_dummies.py b/zerver/migrations/0373_fix_deleteduser_dummies.pyindex 48b469f9bac..d08a3f280e2 100644--- a/zerver/migrations/0373_fix_deleteduser_dummies.py+++ b/zerver/migrations/0373_fix_deleteduser_dummies.py@@ -5,7 +5,7 @@ from django.conf import settingsfrom django.core.exceptions import ValidationErrorfrom django.core.validators import validate_emailfrom django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0374_backfill_user_delete_realmauditlog.py b/zerver/migrations/0374_backfill_user_delete_realmauditlog.pyindex 56311bdcb45..7df76c0735a 100644--- a/zerver/migrations/0374_backfill_user_delete_realmauditlog.py+++ b/zerver/migrations/0374_backfill_user_delete_realmauditlog.py@@ -1,5 +1,5 @@from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0375_invalid_characters_in_stream_names.py b/zerver/migrations/0375_invalid_characters_in_stream_names.pyindex c440b1167cd..1b4c6541bed 100644--- a/zerver/migrations/0375_invalid_characters_in_stream_names.py+++ b/zerver/migrations/0375_invalid_characters_in_stream_names.py@@ -1,7 +1,7 @@import unicodedatafrom django.db import connection, migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateApps# There are 66 Unicode non-characters; seediff --git a/zerver/migrations/0376_set_realmemoji_author_and_reupload_realmemoji.py b/zerver/migrations/0376_set_realmemoji_author_and_reupload_realmemoji.pyindex e905dd48c33..5758fdff40a 100644--- a/zerver/migrations/0376_set_realmemoji_author_and_reupload_realmemoji.py+++ b/zerver/migrations/0376_set_realmemoji_author_and_reupload_realmemoji.py@@ -1,5 +1,5 @@from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsfrom django.db.models import OuterRef, Subquerydiff --git a/zerver/migrations/0377_message_edit_history_format.py b/zerver/migrations/0377_message_edit_history_format.pyindex 95406054407..4ffda7e0f0b 100644--- a/zerver/migrations/0377_message_edit_history_format.py+++ b/zerver/migrations/0377_message_edit_history_format.py@@ -3,7 +3,7 @@ from typing import Any, List, Optional, Type, TypedDictimport orjsonfrom django.db import migrations, transaction-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsfrom django.db.models import Mindiff --git a/zerver/migrations/0380_userprofile_uuid_backfill.py b/zerver/migrations/0380_userprofile_uuid_backfill.pyindex 3f4c7a7df7c..a66170a15f1 100644--- a/zerver/migrations/0380_userprofile_uuid_backfill.py+++ b/zerver/migrations/0380_userprofile_uuid_backfill.py@@ -1,7 +1,7 @@import uuidfrom django.db import migrations, models-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0382_create_role_based_system_groups.py b/zerver/migrations/0382_create_role_based_system_groups.pyindex fbf2e0515a5..b8cf4094246 100644--- a/zerver/migrations/0382_create_role_based_system_groups.py+++ b/zerver/migrations/0382_create_role_based_system_groups.py@@ -1,7 +1,7 @@# Generated by Django 3.2.7 on 2021-10-16 12:41from django.db import migrations, transaction-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsfrom django.utils.timezone import now as timezone_nowdiff --git a/zerver/migrations/0383_revoke_invitations_from_deactivated_users.py b/zerver/migrations/0383_revoke_invitations_from_deactivated_users.pyindex 6461d254a2b..671cb67fede 100644--- a/zerver/migrations/0383_revoke_invitations_from_deactivated_users.py+++ b/zerver/migrations/0383_revoke_invitations_from_deactivated_users.py@@ -1,7 +1,7 @@from typing import Listfrom django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsfrom django.utils.timezone import now as timezone_nowdiff --git a/zerver/migrations/0386_fix_attachment_caches.py b/zerver/migrations/0386_fix_attachment_caches.pyindex 58a8dcddb5c..308c2cc5f9f 100644--- a/zerver/migrations/0386_fix_attachment_caches.py+++ b/zerver/migrations/0386_fix_attachment_caches.py@@ -3,7 +3,7 @@from typing import Typefrom django.db import migrations, models-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsfrom django.db.models import Exists, Model, OuterRefdiff --git a/zerver/migrations/0387_reupload_realmemoji_again.py b/zerver/migrations/0387_reupload_realmemoji_again.pyindex edb17a7e942..6b5ea4bcea7 100644--- a/zerver/migrations/0387_reupload_realmemoji_again.py+++ b/zerver/migrations/0387_reupload_realmemoji_again.py@@ -1,6 +1,6 @@from django.conf import settingsfrom django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsfrom zerver.lib.queue import queue_json_publishdiff --git a/zerver/migrations/0390_fix_stream_history_public_to_subscribers.py b/zerver/migrations/0390_fix_stream_history_public_to_subscribers.pyindex d2ccc432dc7..75f6c67f9b9 100644--- a/zerver/migrations/0390_fix_stream_history_public_to_subscribers.py+++ b/zerver/migrations/0390_fix_stream_history_public_to_subscribers.py@@ -1,5 +1,5 @@from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0395_alter_realm_wildcard_mention_policy.py b/zerver/migrations/0395_alter_realm_wildcard_mention_policy.pyindex 27b905c4909..b3c708c46a6 100644--- a/zerver/migrations/0395_alter_realm_wildcard_mention_policy.py+++ b/zerver/migrations/0395_alter_realm_wildcard_mention_policy.py@@ -1,7 +1,7 @@# Generated by Django 3.2.13 on 2022-07-05 12:23from django.db import migrations, models-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0397_remove_custom_field_values_for_deleted_options.py b/zerver/migrations/0397_remove_custom_field_values_for_deleted_options.pyindex 84bfb1af98f..dad8c25a8e3 100644--- a/zerver/migrations/0397_remove_custom_field_values_for_deleted_options.py+++ b/zerver/migrations/0397_remove_custom_field_values_for_deleted_options.py@@ -1,7 +1,7 @@# Generated by Django 3.2.13 on 2022-06-17 17:39import orjsonfrom django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0401_migrate_old_realm_reactivation_links.py b/zerver/migrations/0401_migrate_old_realm_reactivation_links.pyindex 871e62af965..9457beb0bb2 100644--- a/zerver/migrations/0401_migrate_old_realm_reactivation_links.py+++ b/zerver/migrations/0401_migrate_old_realm_reactivation_links.py@@ -1,5 +1,5 @@from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0403_create_role_based_groups_for_internal_realms.py b/zerver/migrations/0403_create_role_based_groups_for_internal_realms.pyindex 771b879afc8..ad038be8618 100644--- a/zerver/migrations/0403_create_role_based_groups_for_internal_realms.py+++ b/zerver/migrations/0403_create_role_based_groups_for_internal_realms.py@@ -2,7 +2,7 @@from django.conf import settingsfrom django.db import migrations, transaction-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsfrom django.utils.timezone import now as timezone_nowdiff --git a/zerver/migrations/0405_set_default_for_enable_read_receipts.py b/zerver/migrations/0405_set_default_for_enable_read_receipts.pyindex a9e1870d9b2..7c32c741139 100644--- a/zerver/migrations/0405_set_default_for_enable_read_receipts.py+++ b/zerver/migrations/0405_set_default_for_enable_read_receipts.py@@ -1,7 +1,7 @@# Generated by Django 4.0.6 on 2022-08-08 16:52from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsfrom django.db.models import Qdiff --git a/zerver/migrations/0406_alter_realm_message_content_edit_limit_seconds.py b/zerver/migrations/0406_alter_realm_message_content_edit_limit_seconds.pyindex ac674f8e38b..4de9021b646 100644--- a/zerver/migrations/0406_alter_realm_message_content_edit_limit_seconds.py+++ b/zerver/migrations/0406_alter_realm_message_content_edit_limit_seconds.py@@ -1,7 +1,7 @@# Generated by Django 3.2.12 on 2022-04-12 14:51from django.db import migrations, models-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0409_set_default_for_can_remove_subscribers_group.py b/zerver/migrations/0409_set_default_for_can_remove_subscribers_group.pyindex 300cfb47ea5..9579e10b869 100644--- a/zerver/migrations/0409_set_default_for_can_remove_subscribers_group.py+++ b/zerver/migrations/0409_set_default_for_can_remove_subscribers_group.py@@ -1,7 +1,7 @@# Generated by Django 3.2.13 on 2022-06-28 12:02from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0413_set_presence_enabled_false_for_user_status_away.py b/zerver/migrations/0413_set_presence_enabled_false_for_user_status_away.pyindex f41c3768332..a473b8f7dad 100644--- a/zerver/migrations/0413_set_presence_enabled_false_for_user_status_away.py+++ b/zerver/migrations/0413_set_presence_enabled_false_for_user_status_away.py@@ -1,7 +1,7 @@# Generated by Django 4.0.7 on 2022-09-21 15:01from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsAWAY = 1diff --git a/zerver/migrations/0416_set_default_emoji_style.py b/zerver/migrations/0416_set_default_emoji_style.pyindex 1ecff5cdd9a..db130deedac 100644--- a/zerver/migrations/0416_set_default_emoji_style.py+++ b/zerver/migrations/0416_set_default_emoji_style.py@@ -1,5 +1,5 @@from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0419_backfill_message_realm.py b/zerver/migrations/0419_backfill_message_realm.pyindex c6f77ee6f45..b8e772c6b35 100644--- a/zerver/migrations/0419_backfill_message_realm.py+++ b/zerver/migrations/0419_backfill_message_realm.py@@ -1,6 +1,6 @@from django.conf import settingsfrom django.db import migrations, transaction-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsfrom django.db.models import Exists, Max, OuterRef, Subquerydiff --git a/zerver/migrations/0421_migrate_pronouns_custom_profile_fields.py b/zerver/migrations/0421_migrate_pronouns_custom_profile_fields.pyindex 7cfe4a96783..2118a9a6144 100644--- a/zerver/migrations/0421_migrate_pronouns_custom_profile_fields.py+++ b/zerver/migrations/0421_migrate_pronouns_custom_profile_fields.py@@ -1,7 +1,7 @@# Generated by Django 4.1.2 on 2022-10-21 06:31from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0423_fix_email_gateway_attachment_owner.py b/zerver/migrations/0423_fix_email_gateway_attachment_owner.pyindex f7f81440e5f..53333c3b5ce 100644--- a/zerver/migrations/0423_fix_email_gateway_attachment_owner.py+++ b/zerver/migrations/0423_fix_email_gateway_attachment_owner.py@@ -2,7 +2,7 @@ from datetime import timedeltafrom django.conf import settingsfrom django.db import connection, migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsfrom psycopg2.sql import SQL, Identifier, Literaldiff --git a/zerver/migrations/0427_migrate_to_user_level_email_address_visibility_setting.py b/zerver/migrations/0427_migrate_to_user_level_email_address_visibility_setting.pyindex eae1ab48ee2..b8c16158dde 100644--- a/zerver/migrations/0427_migrate_to_user_level_email_address_visibility_setting.py+++ b/zerver/migrations/0427_migrate_to_user_level_email_address_visibility_setting.py@@ -1,7 +1,7 @@# Generated by Django 3.2.8 on 2021-10-27 14:25from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zerver/migrations/0430_fix_audit_log_objects_for_group_based_stream_settings.py b/zerver/migrations/0430_fix_audit_log_objects_for_group_based_stream_settings.pyindex e325777b3e9..0e603ce2ff6 100644--- a/zerver/migrations/0430_fix_audit_log_objects_for_group_based_stream_settings.py+++ b/zerver/migrations/0430_fix_audit_log_objects_for_group_based_stream_settings.py@@ -2,7 +2,7 @@import jsonfrom django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateAppsdiff --git a/zilencer/migrations/0022_remotezulipserver_create_audit_log_backfill.py b/zilencer/migrations/0022_remotezulipserver_create_audit_log_backfill.pyindex 42c0fc03d81..8570796cf78 100644--- a/zilencer/migrations/0022_remotezulipserver_create_audit_log_backfill.py+++ b/zilencer/migrations/0022_remotezulipserver_create_audit_log_backfill.py@@ -1,5 +1,5 @@from django.db import migrations-from django.db.backends.postgresql.schema import BaseDatabaseSchemaEditor+from django.db.backends.base.schema import BaseDatabaseSchemaEditorfrom django.db.migrations.state import StateApps