projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[#1149] Merge remote-tracking branch 'remotes/upstream/develop' into 1149-oban-job...
[akkoma]
/
priv
/
repo
/
migrations
/
20181201105617_add_uui_ds_to_user_info.exs
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 9571a1e4ddb45765d95ee1a5455e3a37e328c7ef..964383668054bb595eab5b296523275e6e9c7c0e 100644
(file)
--- 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