Fork of Pleroma with site-specific changes and feature branches https://git.pleroma.social/pleroma/pleroma
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
452B

  1. defmodule Pleroma.Repo.Migrations.RemoveCronJobs do
  2. use Ecto.Migration
  3. import Ecto.Query, only: [from: 2]
  4. def up do
  5. from(j in "oban_jobs",
  6. where:
  7. j.worker in ^[
  8. "Pleroma.Workers.Cron.PurgeExpiredActivitiesWorker",
  9. "Pleroma.Workers.Cron.StatsWorker",
  10. "Pleroma.Workers.Cron.ClearOauthTokenWorker"
  11. ],
  12. select: [:id]
  13. )
  14. |> Pleroma.Repo.delete_all()
  15. end
  16. def down, do: :ok
  17. end