akkoma/priv/repo/migrations/20220718102634_upgrade_oban_to_v11.exs
floatingghost 11d29d27b8
Some checks failed
ci/woodpecker/tag/woodpecker Pipeline is pending
ci/woodpecker/push/woodpecker Pipeline failed
Ensure migrations succeed (#216)
Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk>
Reviewed-on: #216
2022-09-16 12:53:45 +01:00

10 lines
258 B
Elixir

defmodule Pleroma.Repo.Migrations.UpgradeObanToV11 do
use Ecto.Migration
def up do
execute("UPDATE oban_jobs SET priority = 0 WHERE priority IS NULL;")
Oban.Migrations.up(version: 11)
end
def down, do: Oban.Migrations.down(version: 11)
end