Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
migration: Tweak migration 0401 to exit early on most servers.
Mateusz Manderaf04acc604088
diff --git a/zerver/migrations/0401_migrate_old_realm_reactivation_links.py b/zerver/migrations/0401_migrate_old_realm_reactivation_links.pyindex 34d3706b8d2..362684bce9e 100644--- a/zerver/migrations/0401_migrate_old_realm_reactivation_links.py+++ b/zerver/migrations/0401_migrate_old_realm_reactivation_links.py@@ -26,8 +26,8 @@ def fix_old_realm_reactivation_confirmations(Confirmation = apps.get_model("confirmation", "Confirmation")ContentType = apps.get_model("contenttypes", "ContentType")- if not Confirmation.objects.exists():- # No Confirmations so nothing to do, and the database may actually+ if not Confirmation.objects.filter(type=REALM_REACTIVATION).exists():+ # No relevant Confirmations so nothing to do, and the database may actually# no be provisioned yet, which would make the code below break.return