1 defmodule Pleroma.Repo.Migrations.RenameNotificationPrivacyOption do
6 "UPDATE users SET notification_settings = notification_settings - 'privacy_option' || jsonb_build_object('hide_notification_contents', notification_settings->'privacy_option')
7 where notification_settings ? 'privacy_option'
14 "UPDATE users SET notification_settings = notification_settings - 'hide_notification_contents' || jsonb_build_object('privacy_option', notification_settings->'hide_notification_contents')
15 where notification_settings ? 'hide_notification_contents'