mirror of
https://git.pleroma.social/sjw/pleroma.git
synced 2024-12-24 02:57:04 +01:00
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 New Issue
Block a user