diff --git a/migrations/20240802-make-green-dot-appear-even-when-chat-muted.sql b/migrations/20240802-make-green-dot-appear-even-when-chat-muted.sql index 0f80d02f6..a79f743d4 100644 --- a/migrations/20240802-make-green-dot-appear-even-when-chat-muted.sql +++ b/migrations/20240802-make-green-dot-appear-even-when-chat-muted.sql @@ -1,4 +1,4 @@ alter table chat_memberships add column muted bool not null default false; alter table chat_memberships alter column muted drop default; -update chat_memberships set muted=true, notification=false where notification=null; +update chat_memberships set muted=true, notification=false where notification is null; alter table chat_memberships alter column notification set not null;