logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://anongit.hacktivis.me/git/pleroma.git/

20171109091239_add_actor_to_activity.exs (597B)


  1. # Pleroma: A lightweight social networking server
  2. # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
  3. # SPDX-License-Identifier: AGPL-3.0-only
  4. defmodule Pleroma.Repo.Migrations.AddActorToActivity do
  5. use Ecto.Migration
  6. @disable_ddl_transaction true
  7. def up do
  8. alter table(:activities) do
  9. add(:actor, :string)
  10. end
  11. create(index(:activities, [:actor, "id DESC NULLS LAST"], concurrently: true))
  12. end
  13. def down do
  14. drop_if_exists(index(:activities, [:actor, "id DESC NULLS LAST"]))
  15. alter table(:activities) do
  16. remove(:actor)
  17. end
  18. end
  19. end