2022-07-18 04:48:49 -06:00
|
|
|
defmodule Pleroma.Repo.Migrations.UpgradeObanToV11 do
|
|
|
|
use Ecto.Migration
|
|
|
|
|
2022-09-16 05:53:11 -06:00
|
|
|
def up do
|
|
|
|
execute("UPDATE oban_jobs SET priority = 0 WHERE priority IS NULL;")
|
|
|
|
Oban.Migrations.up(version: 11)
|
|
|
|
end
|
2022-07-18 04:48:49 -06:00
|
|
|
|
|
|
|
def down, do: Oban.Migrations.down(version: 11)
|
|
|
|
end
|