Skip to content
Snippets Groups Projects
Commit ab03f812 authored by lain's avatar lain
Browse files

Fix info ids.

The previous migration actually created values for the key "id", including the
quotes. This one should fill out all missing ids.

Closes #511
parent 5067b791
No related branches found
No related tags found
No related merge requests found
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment