1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.Repo.Migrations.AddApIdToLists do
15 SET ap_id = u.ap_id || '/lists/' || lists.id
17 WHERE lists.user_id = u.id
20 create(unique_index(:lists, :ap_id))
24 drop(index(:lists, [:ap_id]))
26 alter table(:lists) do