logo

pleroma

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

20221103014728_swap_primary_oban_indexes.exs (533B)


  1. defmodule Pleroma.Repo.Migrations.SwapPrimaryObanIndexes do
  2. use Ecto.Migration
  3. @disable_ddl_transaction true
  4. @disable_migration_lock true
  5. def change do
  6. create_if_not_exists(
  7. index(
  8. :oban_jobs,
  9. [:state, :queue, :priority, :scheduled_at, :id],
  10. concurrently: true,
  11. prefix: "public"
  12. )
  13. )
  14. drop_if_exists(
  15. index(
  16. :oban_jobs,
  17. [:queue, :state, :priority, :scheduled_at, :id],
  18. concurrently: true,
  19. prefix: "public"
  20. )
  21. )
  22. end
  23. end