1 defmodule Pleroma.Repo.Migrations.UserNotificationSettingsFix do
5 execute(~s(UPDATE users
7 notification_settings = '{"followers": true, "follows": true, "non_follows": true, "non_followers": true}'::jsonb WHERE notification_settings IS NULL
10 execute("ALTER TABLE users
11 ALTER COLUMN notification_settings SET NOT NULL")