projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'fix/incorrect-expirations' into 'develop'
[akkoma]
/
priv
/
repo
/
migrations
/
20190123125839_fix_info_ids.exs
diff --git
a/priv/repo/migrations/20190123125839_fix_info_ids.exs
b/priv/repo/migrations/20190123125839_fix_info_ids.exs
index 2b4c2b5a9e3b5a4dda3ca1e863bbb6d522cb21fe..5b263b3b3a93dc5f786dd9c1dc4430ad14b733ac 100644
(file)
--- a/
priv/repo/migrations/20190123125839_fix_info_ids.exs
+++ b/
priv/repo/migrations/20190123125839_fix_info_ids.exs
@@
-1,9
+1,11
@@
defmodule Pleroma.Repo.Migrations.FixInfoIds do
use Ecto.Migration
defmodule Pleroma.Repo.Migrations.FixInfoIds do
use Ecto.Migration
- def
change
do
+ def
up
do
execute(
"update users set info = jsonb_set(info, '{id}', to_jsonb(uuid_generate_v4())) where info->'id' is null;"
)
end
execute(
"update users set info = jsonb_set(info, '{id}', to_jsonb(uuid_generate_v4())) where info->'id' is null;"
)
end
+
+ def down, do: :ok
end
end