Object: Add the ap_id column.
This commit is contained in:
parent
93bdc55306
commit
51c1578780
@ -19,6 +19,7 @@ defmodule Pleroma.Object do
|
|||||||
|
|
||||||
schema "objects" do
|
schema "objects" do
|
||||||
field(:data, :map)
|
field(:data, :map)
|
||||||
|
field(:ap_id, :string)
|
||||||
|
|
||||||
timestamps()
|
timestamps()
|
||||||
end
|
end
|
||||||
|
@ -0,0 +1,11 @@
|
|||||||
|
defmodule Pleroma.Repo.Migrations.AddApIdColumnToObjects do
|
||||||
|
use Ecto.Migration
|
||||||
|
|
||||||
|
def change do
|
||||||
|
alter table(:objects) do
|
||||||
|
add :ap_id, :string
|
||||||
|
end
|
||||||
|
|
||||||
|
create unique_index(:objects, [:ap_id], concurrently: true)
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in New Issue
Block a user