diff --git a/zerver/migrations/0490_renumber_options_desktop_icon_count_display.py b/zerver/migrations/0490_renumber_options_desktop_icon_count_display.py index 868bde1f17..cda6881b12 100644 --- a/zerver/migrations/0490_renumber_options_desktop_icon_count_display.py +++ b/zerver/migrations/0490_renumber_options_desktop_icon_count_display.py @@ -40,18 +40,18 @@ def reverse_code(apps: StateApps, schema_editor: BaseDatabaseSchemaEditor) -> No UserProfile = apps.get_model("zerver", "UserProfile") UserProfile.objects.filter( - desktop_icon_count_display=NEW_DESKTOP_ICON_COUNT_DISPLAY_NONE - ).update(desktop_icon_count_display=OLD_DESKTOP_ICON_COUNT_DISPLAY_NONE) + desktop_icon_count_display=NEW_DESKTOP_ICON_COUNT_DISPLAY_DM_MENTION + ).update(desktop_icon_count_display=OLD_DESKTOP_ICON_COUNT_DISPLAY_DM_MENTION) RealmUserDefault.objects.filter( - desktop_icon_count_display=NEW_DESKTOP_ICON_COUNT_DISPLAY_NONE - ).update(desktop_icon_count_display=OLD_DESKTOP_ICON_COUNT_DISPLAY_NONE) + desktop_icon_count_display=NEW_DESKTOP_ICON_COUNT_DISPLAY_DM_MENTION + ).update(desktop_icon_count_display=OLD_DESKTOP_ICON_COUNT_DISPLAY_DM_MENTION) UserProfile.objects.filter( - desktop_icon_count_display=NEW_DESKTOP_ICON_COUNT_DISPLAY_DM_MENTION - ).update(desktop_icon_count_display=OLD_DESKTOP_ICON_COUNT_DISPLAY_DM_MENTION) + desktop_icon_count_display=NEW_DESKTOP_ICON_COUNT_DISPLAY_NONE + ).update(desktop_icon_count_display=OLD_DESKTOP_ICON_COUNT_DISPLAY_NONE) RealmUserDefault.objects.filter( - desktop_icon_count_display=NEW_DESKTOP_ICON_COUNT_DISPLAY_DM_MENTION - ).update(desktop_icon_count_display=OLD_DESKTOP_ICON_COUNT_DISPLAY_DM_MENTION) + desktop_icon_count_display=NEW_DESKTOP_ICON_COUNT_DISPLAY_NONE + ).update(desktop_icon_count_display=OLD_DESKTOP_ICON_COUNT_DISPLAY_NONE) class Migration(migrations.Migration):