logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma
commit: abb349bde0d79cecf98898e82fbda746231c5373
parent: 5067b791a124960e3561ff77065a36d45abd2552
Author: href <href+git-pleroma@random.sh>
Date:   Wed, 23 Jan 2019 13:20:34 +0000

Merge branch 'fix-info-id' into 'develop'

Fix info ids.

Closes #511

See merge request pleroma/pleroma!702

Diffstat:

Apriv/repo/migrations/20190123125839_fix_info_ids.exs9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/priv/repo/migrations/20190123125839_fix_info_ids.exs b/priv/repo/migrations/20190123125839_fix_info_ids.exs @@ -0,0 +1,9 @@ +defmodule Pleroma.Repo.Migrations.FixInfoIds do + use Ecto.Migration + + def change do + execute( + "update users set info = jsonb_set(info, '{id}', to_jsonb(uuid_generate_v4())) where info->'id' is null;" + ) + end +end