blob: 2b4c2b5a9e3b5a4dda3ca1e863bbb6d522cb21fe (
plain)
1
2
3
4
5
6
7
8
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
|