1 defmodule Pleroma.Repo.Migrations.UsersAddInboxes do
6 add_if_not_exists(:inbox, :text)
7 add_if_not_exists(:shared_inbox, :text)
10 execute("UPDATE users SET inbox = source_data->>'inbox'")
11 execute("UPDATE users SET shared_inbox = source_data->'endpoints'->>'sharedInbox'")
15 alter table(:users) do
16 remove_if_exists(:inbox, :text)
17 remove_if_exists(:shared_inbox, :text)