Page MenuHomePhorge

20181201105617_add_uui_ds_to_user_info.exs
No OneTemporary

Size
377 B
Referenced Files
None
Subscribers
None

20181201105617_add_uui_ds_to_user_info.exs

# 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.AddUUIDsToUserInfo do
use Ecto.Migration
def up do
execute("update users set info = jsonb_set(info, '{\"id\"}', to_jsonb(uuid_generate_v4()))")
end
def down, do: :ok
end

File Metadata

Mime Type
text/x-ruby
Expires
Tue, Jan 20, 1:28 PM (1 d, 1 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
969621
Default Alt Text
20181201105617_add_uui_ds_to_user_info.exs (377 B)

Event Timeline