mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 08:36:29 +00:00
bf426c53b4
The email related jobs can all share a single Oban queue
9 lines
226 B
Elixir
9 lines
226 B
Elixir
defmodule Pleroma.Repo.Migrations.ConsolidateEmailQueues do
|
|
use Ecto.Migration
|
|
|
|
def change do
|
|
execute(
|
|
"UPDATE oban_jobs SET queue = 'mailer' WHERE queue in ('digest_emails', 'new_users_digest')"
|
|
)
|
|
end
|
|
end
|