summaryrefslogtreecommitdiff
path: root/priv/repo/migrations/20181201105617_add_uui_ds_to_user_info.exs
blob: 9571a1e4ddb45765d95ee1a5455e3a37e328c7ef (plain)
1
2
3
4
5
6
7
defmodule Pleroma.Repo.Migrations.AddUUIDsToUserInfo do
  use Ecto.Migration

  def change do
    execute("update users set info = jsonb_set(info, '{\"id\"}', to_jsonb(uuid_generate_v4()))")
  end
end