mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-22 16:16:34 +00:00
Ensure we have no duplicate ap ids.
This commit is contained in:
parent
d187a4965f
commit
2f093db051
1 changed files with 8 additions and 0 deletions
|
@ -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