pleroma/priv/repo/migrations/20191007160755_fill_object_ap_id_field.exs

8 lines
159 B
Elixir

defmodule Pleroma.Repo.Migrations.FillObjectApIdField do
use Ecto.Migration
def change do
execute("update objects set ap_id = data->>'id'")
end
end