forked from zulip/zulip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
import: Sort realms migrations status before checking.
This commit sorts the list of migrations to ensure the same sets of migrations don't somehow ordered differently. This has been reported to happen when importing Zulip Cloud to self-host (zulip-cloud-current). The order of migrations listed in `migration_status.json` don't actually matter, migrations specify which other migrations they depend on. Fixes zulip#32826.
- Loading branch information
Showing
3 changed files
with
98 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 65 additions & 0 deletions
65
...s/fixtures/import_fixtures/applied_migrations_fixtures/with_unsorted_migrations_list.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
{ | ||
"contenttypes": ["0001_initial", "0002_remove_content_type_name"], | ||
"auth": [ | ||
"0004_alter_user_username_opts", | ||
"0003_alter_user_email_max_length", | ||
"0002_alter_permission_name_max_length", | ||
"0001_initial" | ||
], | ||
"zerver": [ | ||
"0001_initial", | ||
"0029_realm_subdomain", | ||
"0030_realm_org_type", | ||
"0031_remove_system_avatar_source" | ||
], | ||
"analytics": [ | ||
"0001_initial", | ||
"0002_remove_huddlecount", | ||
"0003_fillstate" | ||
], | ||
"confirmation": [ | ||
"0001_initial", | ||
"0002_realmcreationkey", | ||
"0003_emailchangeconfirmation" | ||
], | ||
"zilencer": [ | ||
"0001_initial", | ||
"0002_remote_zulip_server", | ||
"0003_add_default_for_remotezulipserver_last_updated_field" | ||
], | ||
"corporate": [ | ||
"0001_initial", | ||
"0002_customer_default_discount", | ||
"0003_customerplan" | ||
], | ||
"otp_static": ["0001_initial", "0002_throttling", "0003_add_timestamps"], | ||
"otp_totp": ["0001_initial", "0002_auto_20190420_0723", "0003_add_timestamps"], | ||
"pgroonga": ["0001_enable", "0002_html_escape_subject", "0003_v2_api_upgrade"], | ||
"phonenumber": ["0001_initial", "0001_squashed_0001_initial"], | ||
"two_factor": [ | ||
"0001_initial", | ||
"0002_auto_20150110_0810", | ||
"0003_auto_20150817_1733", | ||
"0004_auto_20160205_1827" | ||
], | ||
"sessions": ["0001_initial"], | ||
"default": [ | ||
"0001_initial", | ||
"0002_add_related_name", | ||
"0003_alter_email_max_length", | ||
"0004_auto_20160423_0400" | ||
], | ||
"social_auth": [ | ||
"0001_initial", | ||
"0002_add_related_name", | ||
"0003_alter_email_max_length", | ||
"0004_auto_20160423_0400", | ||
"0005_auto_20160727_2333" | ||
], | ||
"social_django": [ | ||
"0006_partial", | ||
"0007_code_timestamp", | ||
"0008_partial_timestamp", | ||
"0009_auto_20191118_0520" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters