From 5571fb6a3e93c6d19c08064ebc0c1f64714a39b3 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Mon, 4 Nov 2024 22:10:37 -0800 Subject: [PATCH] migrations: Fix migration 0617 case sensitivity bug. --- zerver/migrations/0617_remove_prefix_from_archived_streams.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zerver/migrations/0617_remove_prefix_from_archived_streams.py b/zerver/migrations/0617_remove_prefix_from_archived_streams.py index 9b2aeee0d6..4c7898da0a 100644 --- a/zerver/migrations/0617_remove_prefix_from_archived_streams.py +++ b/zerver/migrations/0617_remove_prefix_from_archived_streams.py @@ -32,7 +32,7 @@ def remove_prefix_from_archived_streams( continue # Check if there's an active stream or another archived stream with the new name - if not Stream.objects.filter(realm=archived_stream.realm, name=new_name).exists(): + if not Stream.objects.filter(realm=archived_stream.realm, name__iexact=new_name).exists(): archived_stream.name = new_name archived_stream.save(update_fields=["name"])