Commit 2f093db0 authored by lain's avatar lain
Browse files

Ensure we have no duplicate ap ids.

parent d187a496
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)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment