Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
migrations: Add missing elidable tags on RunPython/RunSQL steps.
Tim Abbottafecb2eca6fa
diff --git a/analytics/migrations/0009_remove_messages_to_stream_stat.py b/analytics/migrations/0009_remove_messages_to_stream_stat.pyindex 63b4e5cfcf7..42a2bffd89c 100644--- a/analytics/migrations/0009_remove_messages_to_stream_stat.py+++ b/analytics/migrations/0009_remove_messages_to_stream_stat.py@@ -26,5 +26,5 @@ class Migration(migrations.Migration):]operations = [- migrations.RunPython(delete_messages_sent_to_stream_stat),+ migrations.RunPython(delete_messages_sent_to_stream_stat, elidable=True),]diff --git a/analytics/migrations/0010_clear_messages_sent_values.py b/analytics/migrations/0010_clear_messages_sent_values.pyindex 6eee10dd4c5..b43bcdf069f 100644--- a/analytics/migrations/0010_clear_messages_sent_values.py+++ b/analytics/migrations/0010_clear_messages_sent_values.py@@ -24,5 +24,5 @@ class Migration(migrations.Migration):dependencies = [("analytics", "0009_remove_messages_to_stream_stat")]operations = [- migrations.RunPython(clear_message_sent_by_message_type_values),+ migrations.RunPython(clear_message_sent_by_message_type_values, elidable=True),]diff --git a/analytics/migrations/0011_clear_analytics_tables.py b/analytics/migrations/0011_clear_analytics_tables.pyindex 577d2788e70..b15eb9cc813 100644--- a/analytics/migrations/0011_clear_analytics_tables.py+++ b/analytics/migrations/0011_clear_analytics_tables.py@@ -23,5 +23,5 @@ class Migration(migrations.Migration):]operations = [- migrations.RunPython(clear_analytics_tables),+ migrations.RunPython(clear_analytics_tables, elidable=True),]diff --git a/analytics/migrations/0015_clear_duplicate_counts.py b/analytics/migrations/0015_clear_duplicate_counts.pyindex 9a415fffef9..c8c33cf49da 100644--- a/analytics/migrations/0015_clear_duplicate_counts.py+++ b/analytics/migrations/0015_clear_duplicate_counts.py@@ -60,5 +60,7 @@ class Migration(migrations.Migration):]operations = [- migrations.RunPython(clear_duplicate_counts, reverse_code=migrations.RunPython.noop),+ migrations.RunPython(+ clear_duplicate_counts, reverse_code=migrations.RunPython.noop, elidable=True+ ),]diff --git a/analytics/migrations/0018_remove_usercount_active_users_audit.py b/analytics/migrations/0018_remove_usercount_active_users_audit.pyindex 704c18aade1..02615e45e83 100644--- a/analytics/migrations/0018_remove_usercount_active_users_audit.py+++ b/analytics/migrations/0018_remove_usercount_active_users_audit.py@@ -10,6 +10,7 @@ class Migration(migrations.Migration):operations = [migrations.RunSQL(- "DELETE FROM analytics_usercount WHERE property = 'active_users_audit:is_bot:day'"+ "DELETE FROM analytics_usercount WHERE property = 'active_users_audit:is_bot:day'",+ elidable=True,)]diff --git a/analytics/migrations/0019_remove_unused_counts.py b/analytics/migrations/0019_remove_unused_counts.pyindex 56d3d8a7ec0..a74c371bf93 100644--- a/analytics/migrations/0019_remove_unused_counts.py+++ b/analytics/migrations/0019_remove_unused_counts.py@@ -21,6 +21,7 @@ class Migration(migrations.Migration):"DELETE FROM analytics_installationcount WHERE property IN %s",(REMOVED_COUNTS,),),- ]+ ],+ elidable=True,)]diff --git a/corporate/migrations/0024_zulipsponsorshiprequest_fill_customer_data.py b/corporate/migrations/0024_zulipsponsorshiprequest_fill_customer_data.pyindex b9979bda636..a8823046826 100644--- a/corporate/migrations/0024_zulipsponsorshiprequest_fill_customer_data.py+++ b/corporate/migrations/0024_zulipsponsorshiprequest_fill_customer_data.py@@ -13,6 +13,7 @@ class Migration(migrations.Migration):SET customer_id = (SELECT id FROM corporate_customer WHERE corporate_customer.realm_id = corporate_zulipsponsorshiprequest.realm_id)- """+ """,+ elidable=True,),]diff --git a/corporate/migrations/0035_update_legacy_plan_next_invoice_date.py b/corporate/migrations/0035_update_legacy_plan_next_invoice_date.pyindex c636713a278..9a81f7237e5 100644--- a/corporate/migrations/0035_update_legacy_plan_next_invoice_date.py+++ b/corporate/migrations/0035_update_legacy_plan_next_invoice_date.py@@ -24,5 +24,5 @@ class Migration(migrations.Migration):]operations = [- migrations.RunPython(update_legacy_plan_next_invoice_date),+ migrations.RunPython(update_legacy_plan_next_invoice_date, elidable=True),]diff --git a/corporate/migrations/0036_fix_customer_plans_scheduled_after_legacy_plan.py b/corporate/migrations/0036_fix_customer_plans_scheduled_after_legacy_plan.pyindex 581e519b281..0528ce2b632 100644--- a/corporate/migrations/0036_fix_customer_plans_scheduled_after_legacy_plan.py+++ b/corporate/migrations/0036_fix_customer_plans_scheduled_after_legacy_plan.py@@ -36,5 +36,5 @@ class Migration(migrations.Migration):]operations = [- migrations.RunPython(fix_customer_plans_scheduled_after_legacy_plan),+ migrations.RunPython(fix_customer_plans_scheduled_after_legacy_plan, elidable=True),]diff --git a/corporate/migrations/0039_backfill_end_date_for_fixed_price_plans.py b/corporate/migrations/0039_backfill_end_date_for_fixed_price_plans.pyindex 495fd6fba1e..6f64437ab43 100644--- a/corporate/migrations/0039_backfill_end_date_for_fixed_price_plans.py+++ b/corporate/migrations/0039_backfill_end_date_for_fixed_price_plans.py@@ -58,5 +58,6 @@ class Migration(migrations.Migration):operations = [migrations.RunPython(backfill_end_date_for_fixed_price_plans,+ elidable=True,),]diff --git a/corporate/migrations/0041_fix_plans_on_free_trial_with_changes_in_schedule.py b/corporate/migrations/0041_fix_plans_on_free_trial_with_changes_in_schedule.pyindex eb65c837212..089c6d55095 100644--- a/corporate/migrations/0041_fix_plans_on_free_trial_with_changes_in_schedule.py+++ b/corporate/migrations/0041_fix_plans_on_free_trial_with_changes_in_schedule.py@@ -46,5 +46,6 @@ class Migration(migrations.Migration):operations = [migrations.RunPython(fix_plans_on_free_trial_with_changes_in_schedule,+ elidable=True,),]diff --git a/corporate/migrations/0043_remove_customer_default_discount_and_more.py b/corporate/migrations/0043_remove_customer_default_discount_and_more.pyindex 21e7d2c4afe..1cc796c140c 100644--- a/corporate/migrations/0043_remove_customer_default_discount_and_more.py+++ b/corporate/migrations/0043_remove_customer_default_discount_and_more.py@@ -75,7 +75,7 @@ class Migration(migrations.Migration):field=models.IntegerField(default=0),),# Populate the new discounted price fields based on existing default discount.- migrations.RunPython(calculate_discounted_price),+ migrations.RunPython(calculate_discounted_price, elidable=True),migrations.RemoveField(model_name="customer",name="default_discount",diff --git a/zerver/migrations/0261_pregistrationuser_clear_invited_as_admin.py b/zerver/migrations/0261_pregistrationuser_clear_invited_as_admin.pyindex 42dc704bcc0..4073512ae07 100644--- a/zerver/migrations/0261_pregistrationuser_clear_invited_as_admin.py+++ b/zerver/migrations/0261_pregistrationuser_clear_invited_as_admin.py@@ -36,6 +36,8 @@ class Migration(migrations.Migration):operations = [migrations.RunPython(- clear_preregistrationuser_invited_as_admin, reverse_code=migrations.RunPython.noop+ clear_preregistrationuser_invited_as_admin,+ reverse_code=migrations.RunPython.noop,+ elidable=True,),]diff --git a/zerver/migrations/0301_fix_unread_messages_in_deactivated_streams.py b/zerver/migrations/0301_fix_unread_messages_in_deactivated_streams.pyindex 84d5c2c5436..f2603f2a396 100644--- a/zerver/migrations/0301_fix_unread_messages_in_deactivated_streams.py+++ b/zerver/migrations/0301_fix_unread_messages_in_deactivated_streams.py@@ -23,5 +23,6 @@ class Migration(migrations.Migration):AND zerver_stream.deactivated;""",reverse_sql="",+ elidable=True,),]diff --git a/zerver/migrations/0306_custom_profile_field_date_format.py b/zerver/migrations/0306_custom_profile_field_date_format.pyindex db006cefcac..7a597edaeb0 100644--- a/zerver/migrations/0306_custom_profile_field_date_format.py+++ b/zerver/migrations/0306_custom_profile_field_date_format.py@@ -26,5 +26,6 @@ class Migration(migrations.Migration):END;""",reverse_sql="",+ elidable=True,),]diff --git a/zerver/migrations/0313_finish_is_user_active_migration.py b/zerver/migrations/0313_finish_is_user_active_migration.pyindex d4bbffa7089..1989c9b3023 100644--- a/zerver/migrations/0313_finish_is_user_active_migration.py+++ b/zerver/migrations/0313_finish_is_user_active_migration.py@@ -41,7 +41,9 @@ class Migration(migrations.Migration):]operations = [- migrations.RunPython(backfill_is_user_active, reverse_code=migrations.RunPython.noop),+ migrations.RunPython(+ backfill_is_user_active, reverse_code=migrations.RunPython.noop, elidable=True+ ),# Make the field non-null now that we backfilled.migrations.AlterField(model_name="subscription",diff --git a/zerver/migrations/0371_invalid_characters_in_topics.py b/zerver/migrations/0371_invalid_characters_in_topics.pyindex 4cade25f5d5..ce7b770206e 100644--- a/zerver/migrations/0371_invalid_characters_in_topics.py+++ b/zerver/migrations/0371_invalid_characters_in_topics.py@@ -75,5 +75,5 @@ class Migration(migrations.Migration):]operations = [- migrations.RunPython(fix_topics, reverse_code=migrations.RunPython.noop),+ migrations.RunPython(fix_topics, reverse_code=migrations.RunPython.noop, elidable=True),]diff --git a/zerver/migrations/0373_fix_deleteduser_dummies.py b/zerver/migrations/0373_fix_deleteduser_dummies.pyindex 787c3cff887..a6c9aa45af4 100644--- a/zerver/migrations/0373_fix_deleteduser_dummies.py+++ b/zerver/migrations/0373_fix_deleteduser_dummies.py@@ -83,5 +83,6 @@ class Migration(migrations.Migration):migrations.RunPython(fix_dummy_users,reverse_code=migrations.RunPython.noop,+ elidable=True,)]diff --git a/zerver/migrations/0375_invalid_characters_in_stream_names.py b/zerver/migrations/0375_invalid_characters_in_stream_names.pyindex 9769df97f55..b4e46f4ff25 100644--- a/zerver/migrations/0375_invalid_characters_in_stream_names.py+++ b/zerver/migrations/0375_invalid_characters_in_stream_names.py@@ -76,5 +76,9 @@ class Migration(migrations.Migration):]operations = [- migrations.RunPython(fix_stream_names, reverse_code=migrations.RunPython.noop),+ migrations.RunPython(+ fix_stream_names,+ reverse_code=migrations.RunPython.noop,+ elidable=True,+ ),]diff --git a/zerver/migrations/0376_set_realmemoji_author_and_reupload_realmemoji.py b/zerver/migrations/0376_set_realmemoji_author_and_reupload_realmemoji.pyindex 5758fdff40a..2bff70a39fe 100644--- a/zerver/migrations/0376_set_realmemoji_author_and_reupload_realmemoji.py+++ b/zerver/migrations/0376_set_realmemoji_author_and_reupload_realmemoji.py@@ -38,5 +38,7 @@ class Migration(migrations.Migration):]operations = [- migrations.RunPython(set_emoji_author, reverse_code=migrations.RunPython.noop),+ migrations.RunPython(+ set_emoji_author, reverse_code=migrations.RunPython.noop, elidable=True+ ),]diff --git a/zerver/migrations/0377_message_edit_history_format.py b/zerver/migrations/0377_message_edit_history_format.pyindex 8cac73d2ed0..14bc6be2a29 100644--- a/zerver/migrations/0377_message_edit_history_format.py+++ b/zerver/migrations/0377_message_edit_history_format.py@@ -164,5 +164,6 @@ class Migration(migrations.Migration):migrations.RunPython(copy_and_update_message_edit_history,reverse_code=migrations.RunPython.noop,+ elidable=True,),]diff --git a/zerver/migrations/0380_userprofile_uuid_backfill.py b/zerver/migrations/0380_userprofile_uuid_backfill.pyindex a66170a15f1..0557bbbe833 100644--- a/zerver/migrations/0380_userprofile_uuid_backfill.py+++ b/zerver/migrations/0380_userprofile_uuid_backfill.py@@ -36,5 +36,7 @@ class Migration(migrations.Migration):]operations = [- migrations.RunPython(backfill_user_profile_uuid, reverse_code=migrations.RunPython.noop),+ migrations.RunPython(+ backfill_user_profile_uuid, reverse_code=migrations.RunPython.noop, elidable=True+ ),]diff --git a/zerver/migrations/0386_fix_attachment_caches.py b/zerver/migrations/0386_fix_attachment_caches.pyindex 0c6a8b74c22..83ecd881e26 100644--- a/zerver/migrations/0386_fix_attachment_caches.py+++ b/zerver/migrations/0386_fix_attachment_caches.py@@ -72,5 +72,7 @@ class Migration(migrations.Migration):to="zerver.ArchivedMessage",),),- migrations.RunPython(fix_attachment_caches, reverse_code=migrations.RunPython.noop),+ migrations.RunPython(+ fix_attachment_caches, reverse_code=migrations.RunPython.noop, elidable=True+ ),]diff --git a/zerver/migrations/0387_reupload_realmemoji_again.py b/zerver/migrations/0387_reupload_realmemoji_again.pyindex 6b5ea4bcea7..bdff80e2508 100644--- a/zerver/migrations/0387_reupload_realmemoji_again.py+++ b/zerver/migrations/0387_reupload_realmemoji_again.py@@ -43,5 +43,7 @@ class Migration(migrations.Migration):]operations = [- migrations.RunPython(reupload_realm_emoji, reverse_code=migrations.RunPython.noop),+ migrations.RunPython(+ reupload_realm_emoji, reverse_code=migrations.RunPython.noop, elidable=True+ ),]diff --git a/zerver/migrations/0429_user_topic_case_insensitive_unique_toghether.py b/zerver/migrations/0429_user_topic_case_insensitive_unique_toghether.pyindex 2d5c3612193..eaf5554b5ff 100644--- a/zerver/migrations/0429_user_topic_case_insensitive_unique_toghether.py+++ b/zerver/migrations/0429_user_topic_case_insensitive_unique_toghether.py@@ -18,7 +18,8 @@ class Migration(migrations.Migration):migrations.RunSQL("""DELETE FROM zerver_usertopic WHERE id NOT IN (SELECT max(id) FROM zerver_usertopic GROUP BY (user_profile_id, stream_id, upper(topic_name::text)));- """+ """,+ elidable=True,),migrations.AddConstraint(model_name="usertopic",diff --git a/zerver/migrations/0436_realmauthenticationmethods.py b/zerver/migrations/0436_realmauthenticationmethods.pyindex 0716113e542..f5156878649 100644--- a/zerver/migrations/0436_realmauthenticationmethods.py+++ b/zerver/migrations/0436_realmauthenticationmethods.py@@ -49,5 +49,5 @@ class Migration(migrations.Migration):"unique_together": {("realm", "name")},},),- migrations.RunPython(fill_RealmAuthenticationMethod_data),+ migrations.RunPython(fill_RealmAuthenticationMethod_data, elidable=True),]diff --git a/zerver/migrations/0444_userpresence_fill_data.py b/zerver/migrations/0444_userpresence_fill_data.pyindex dc9c11b3c64..b7c8007e7cd 100644--- a/zerver/migrations/0444_userpresence_fill_data.py+++ b/zerver/migrations/0444_userpresence_fill_data.py@@ -66,4 +66,6 @@ class Migration(migrations.Migration):("zerver", "0443_userpresence_new_table_schema"),]- operations = [migrations.RunPython(fill_new_columns, reverse_code=clear_new_columns)]+ operations = [+ migrations.RunPython(fill_new_columns, reverse_code=clear_new_columns, elidable=True)+ ]diff --git a/zerver/migrations/0457_backfill_scheduledmessagenotificationemail_trigger.py b/zerver/migrations/0457_backfill_scheduledmessagenotificationemail_trigger.pyindex fddcbbd8c30..e83543691db 100644--- a/zerver/migrations/0457_backfill_scheduledmessagenotificationemail_trigger.py+++ b/zerver/migrations/0457_backfill_scheduledmessagenotificationemail_trigger.py@@ -20,6 +20,7 @@ class Migration(migrations.Migration):SET trigger = 'wildcard_mentioned'WHERE trigger = 'stream_wildcard_mentioned';""",+ elidable=True,),migrations.RunSQL("""@@ -32,5 +33,6 @@ class Migration(migrations.Migration):SET trigger = 'followed_topic_wildcard_mentioned'WHERE trigger = 'stream_wildcard_mentioned_in_followed_topic';""",+ elidable=True,),]diff --git a/zerver/migrations/0465_backfill_scheduledmessagenotificationemail_trigger.py b/zerver/migrations/0465_backfill_scheduledmessagenotificationemail_trigger.pyindex c960a2bb694..8269145dbe8 100644--- a/zerver/migrations/0465_backfill_scheduledmessagenotificationemail_trigger.py+++ b/zerver/migrations/0465_backfill_scheduledmessagenotificationemail_trigger.py@@ -20,5 +20,6 @@ class Migration(migrations.Migration):SET trigger = 'private_message'WHERE trigger = 'direct_message';""",+ elidable=True,),]diff --git a/zerver/migrations/0468_rename_followup_day_email_templates.py b/zerver/migrations/0468_rename_followup_day_email_templates.pyindex 1d393adc761..f8c24abd43a 100644--- a/zerver/migrations/0468_rename_followup_day_email_templates.py+++ b/zerver/migrations/0468_rename_followup_day_email_templates.py@@ -91,5 +91,6 @@ class Migration(migrations.Migration):migrations.RunPython(update_for_followup_day_email_templates_rename,reverse_code=revert_followup_day_email_templates_rename,+ elidable=True,),]diff --git a/zerver/migrations/0480_realm_backfill_uuid_and_secret.py b/zerver/migrations/0480_realm_backfill_uuid_and_secret.pyindex 75d47c90d14..79bb63a0921 100644--- a/zerver/migrations/0480_realm_backfill_uuid_and_secret.py+++ b/zerver/migrations/0480_realm_backfill_uuid_and_secret.py@@ -64,6 +64,8 @@ class Migration(migrations.Migration):operations = [migrations.RunPython(- backfill_realm_uuid_and_secret, reverse_code=migrations.RunPython.noop+ backfill_realm_uuid_and_secret,+ reverse_code=migrations.RunPython.noop,+ elidable=True,),]diff --git a/zerver/migrations/0496_alter_scheduledmessage_read_by_sender.py b/zerver/migrations/0496_alter_scheduledmessage_read_by_sender.pyindex bf493546456..6dbd288dde2 100644--- a/zerver/migrations/0496_alter_scheduledmessage_read_by_sender.py+++ b/zerver/migrations/0496_alter_scheduledmessage_read_by_sender.py@@ -42,6 +42,7 @@ class Migration(migrations.Migration):migrations.RunPython(populate_read_by_sender,reverse_code=migrations.RunPython.noop,+ elidable=True,),migrations.AlterField(model_name="scheduledmessage",diff --git a/zerver/migrations/0500_realm_zulip_update_announcements_stream.py b/zerver/migrations/0500_realm_zulip_update_announcements_stream.pyindex 8113d42b446..58cbe4b58a0 100644--- a/zerver/migrations/0500_realm_zulip_update_announcements_stream.py+++ b/zerver/migrations/0500_realm_zulip_update_announcements_stream.py@@ -36,5 +36,6 @@ class Migration(migrations.Migration):migrations.RunPython(set_initial_value_for_zulip_update_announcements_stream,reverse_code=migrations.RunPython.noop,+ elidable=True,),]diff --git a/zerver/migrations/0501_delete_dangling_usermessages.py b/zerver/migrations/0501_delete_dangling_usermessages.pyindex f7c9ebc7e5e..45f0e949f0e 100644--- a/zerver/migrations/0501_delete_dangling_usermessages.py+++ b/zerver/migrations/0501_delete_dangling_usermessages.py@@ -202,7 +202,9 @@ class Migration(migrations.Migration):operations = [migrations.RunSQL(BUILD_BAD_MOVES_TABLE, elidable=True),migrations.RunSQL(BROADEN_MOVES, elidable=True),- migrations.RunPython(log_extra_usermessage_rows, reverse_code=migrations.RunPython.noop),+ migrations.RunPython(+ log_extra_usermessage_rows, reverse_code=migrations.RunPython.noop, elidable=True+ ),migrations.RunSQL("""DELETE FROM zerver_usermessagediff --git a/zerver/migrations/0501_mark_introduce_zulip_view_modals_as_read.py b/zerver/migrations/0501_mark_introduce_zulip_view_modals_as_read.pyindex 5a8d08929fc..3a3d503ce34 100644--- a/zerver/migrations/0501_mark_introduce_zulip_view_modals_as_read.py+++ b/zerver/migrations/0501_mark_introduce_zulip_view_modals_as_read.py@@ -71,5 +71,6 @@ class Migration(migrations.Migration):migrations.RunPython(mark_introduce_zulip_view_modals_as_read,reverse_code=mark_introduce_zulip_view_modals_as_unread,+ elidable=True,),]diff --git a/zerver/migrations/0563_zulipinternal_can_delete.py b/zerver/migrations/0563_zulipinternal_can_delete.pyindex cbdc298f0cb..e19665a521d 100644--- a/zerver/migrations/0563_zulipinternal_can_delete.py+++ b/zerver/migrations/0563_zulipinternal_can_delete.py@@ -8,6 +8,7 @@ class Migration(migrations.Migration):operations = [migrations.RunSQL(- "UPDATE zerver_realm SET delete_own_message_policy = 1 where string_id = 'zulipinternal'"+ "UPDATE zerver_realm SET delete_own_message_policy = 1 where string_id = 'zulipinternal'",+ elidable=True,)]diff --git a/zerver/migrations/0564_purge_nagios_messages.py b/zerver/migrations/0564_purge_nagios_messages.pyindex ab381e1fa3c..06143eb4ba1 100644--- a/zerver/migrations/0564_purge_nagios_messages.py+++ b/zerver/migrations/0564_purge_nagios_messages.py@@ -87,10 +87,9 @@ def purge_nagios_messages(apps: StateApps, schema_editor: BaseDatabaseSchemaEditclass Migration(migrations.Migration):atomic = False- elidable = Truedependencies = [("zerver", "0563_zulipinternal_can_delete"),]- operations = [migrations.RunPython(purge_nagios_messages)]+ operations = [migrations.RunPython(purge_nagios_messages, elidable=True)]diff --git a/zilencer/migrations/0032_remotepushdevicetoken_backfill_ios_app_id.py b/zilencer/migrations/0032_remotepushdevicetoken_backfill_ios_app_id.pyindex 62c2d6bc94f..ec97a318d92 100644--- a/zilencer/migrations/0032_remotepushdevicetoken_backfill_ios_app_id.py+++ b/zilencer/migrations/0032_remotepushdevicetoken_backfill_ios_app_id.py@@ -32,5 +32,6 @@ class Migration(migrations.Migration):# The updated table is still valid with the old schema;# so to reverse, a no-op suffices.reverse_sql=[],+ elidable=True,),]diff --git a/zilencer/migrations/0037_alter_remoteinstallationcount_unique_together_and_more.py b/zilencer/migrations/0037_alter_remoteinstallationcount_unique_together_and_more.pyindex 8ef1f79a7ba..d3195958fd0 100644--- a/zilencer/migrations/0037_alter_remoteinstallationcount_unique_together_and_more.py+++ b/zilencer/migrations/0037_alter_remoteinstallationcount_unique_together_and_more.py@@ -49,7 +49,9 @@ class Migration(migrations.Migration):]operations = [- migrations.RunPython(clear_duplicate_counts, reverse_code=migrations.RunPython.noop),+ migrations.RunPython(+ clear_duplicate_counts, reverse_code=migrations.RunPython.noop, elidable=True+ ),migrations.AddConstraint(model_name="remoteinstallationcount",constraint=models.UniqueConstraint(diff --git a/zilencer/migrations/0052_alter_remoterealm_plan_type_and_more.py b/zilencer/migrations/0052_alter_remoterealm_plan_type_and_more.pyindex 209e24cfdb5..6e9a57702f3 100644--- a/zilencer/migrations/0052_alter_remoterealm_plan_type_and_more.py+++ b/zilencer/migrations/0052_alter_remoterealm_plan_type_and_more.py@@ -35,5 +35,7 @@ class Migration(migrations.Migration):name="plan_type",field=models.PositiveSmallIntegerField(default=PLAN_TYPE_SELF_MANAGED),),- migrations.RunPython(renumber_plan_types, reverse_code=migrations.RunPython.noop),+ migrations.RunPython(+ renumber_plan_types, reverse_code=migrations.RunPython.noop, elidable=True+ ),]