Migrations: Add a fixup migration for the muted_notifications
authorlain <lain@soykaf.club>
Mon, 4 Nov 2019 14:38:28 +0000 (15:38 +0100)
committerlain <lain@soykaf.club>
Mon, 4 Nov 2019 14:38:28 +0000 (15:38 +0100)
commit5f844fd3f2b35075bd3a90c71315c321fec6a6e8
tree52c01386ac093eab63993e07ebab46b2b5dcdea4
parent4bab9672ed3d2dd4c1c62b2e233e79b671526515
Migrations: Add a fixup migration for the muted_notifications

This sets info->muted_notifications to an emtpy array if it is explicitly set
to null before. This can happen when safe_jsonb_set coalesces to a jsonb null,
which will make ecto not use the default value of [] anymore because it has been
explicitly overwritten.
priv/repo/migrations/20191104143558_fix_null_muted_notification_fields.exs [new file with mode: 0644]