X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=priv%2Frepo%2Fmigrations%2F20181201105617_add_uui_ds_to_user_info.exs;h=964383668054bb595eab5b296523275e6e9c7c0e;hb=a079ec3a3cdfd42d2cbd51c7698c2c87828e5778;hp=9571a1e4ddb45765d95ee1a5455e3a37e328c7ef;hpb=4996fb07d829a5c93fe97a6f3364f3032fb2c1bb;p=akkoma diff --git a/priv/repo/migrations/20181201105617_add_uui_ds_to_user_info.exs b/priv/repo/migrations/20181201105617_add_uui_ds_to_user_info.exs index 9571a1e4d..964383668 100644 --- a/priv/repo/migrations/20181201105617_add_uui_ds_to_user_info.exs +++ b/priv/repo/migrations/20181201105617_add_uui_ds_to_user_info.exs @@ -1,7 +1,9 @@ defmodule Pleroma.Repo.Migrations.AddUUIDsToUserInfo do use Ecto.Migration - def change do + def up do execute("update users set info = jsonb_set(info, '{\"id\"}', to_jsonb(uuid_generate_v4()))") end + + def down, do: :ok end