Merge branch 'develop' into gun

This commit is contained in:
Alexander Strizhakov 2020-03-09 10:56:33 +03:00
commit d9f8941dac
No known key found for this signature in database
GPG key ID: 022896A53AEF1381
25 changed files with 63 additions and 543 deletions

View file

@ -0,0 +1,9 @@
defmodule Pleroma.Repo.Migrations.FixModerationLogSubjects do
use Ecto.Migration
def change do
execute(
"update moderation_log set data = safe_jsonb_set(data, '{subject}', safe_jsonb_set('[]'::jsonb, '{0}', data->'subject')) where jsonb_typeof(data->'subject') != 'array' and data->>'action' = ANY('{revoke,grant,activate,deactivate,delete}');"
)
end
end