Ensure we have no duplicate ap ids.
This commit is contained in:
parent
d187a4965f
commit
2f093db051
|
@ -0,0 +1,8 @@
|
|||
defmodule Pleroma.Repo.Migrations.AddIdContraintsToActivitiesAndObjects do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
create index(:objects, ["(data->>\"id\")"], name: :objects_unique_apid_index)
|
||||
create index(:activities, ["(data->>\"id\")"], name: :activities_unique_apid_index)
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue