Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85649181
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
494 B
Referenced Files
None
Subscribers
None
View Options
diff --git a/priv/repo/migrations/20190123125839_fix_info_ids.exs b/priv/repo/migrations/20190123125839_fix_info_ids.exs
new file mode 100644
index 000000000..2b4c2b5a9
--- /dev/null
+++ b/priv/repo/migrations/20190123125839_fix_info_ids.exs
@@ -0,0 +1,9 @@
+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
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sat, Aug 29, 8:05 AM (1 d, 15 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1736290
Default Alt Text
(494 B)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline
Log In to Comment