Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33103455
20190123125839_fix_info_ids.exs
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
403 B
Referenced Files
None
Subscribers
None
20190123125839_fix_info_ids.exs
View Options
# Pleroma: A lightweight social networking server
# Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule
Pleroma.Repo.Migrations.FixInfoIds
do
use
Ecto.Migration
def
up
do
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
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Tue, Jan 20, 1:50 PM (12 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
973771
Default Alt Text
20190123125839_fix_info_ids.exs (403 B)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline
Log In to Comment