pleroma/priv/repo/migrations/20170501124823_add_id_contraints_to_activities_and_objects.exs

14 lines
494 B
Elixir
Raw Normal View History

2022-02-26 06:11:42 +00:00
# Pleroma: A lightweight social networking server
# Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
2022-02-26 06:11:42 +00:00
# SPDX-License-Identifier: AGPL-3.0-only
2017-05-01 12:54:58 +00:00
defmodule Pleroma.Repo.Migrations.AddIdContraintsToActivitiesAndObjects do
use Ecto.Migration
def change do
2017-09-16 22:01:49 +00:00
# This was wrong, make it a noop.
# create index(:objects, ["(data->>\"id\")"], name: :objects_unique_apid_index)
# create index(:activities, ["(data->>\"id\")"], name: :activities_unique_apid_index)
2017-05-01 12:54:58 +00:00
end
end