mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 03:17:51 +00:00
Ensure migrations succeed (#216)
Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk> Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/216
This commit is contained in:
parent
00f840fd44
commit
911f8feb0a
2 changed files with 13 additions and 1 deletions
|
@ -1,7 +1,10 @@
|
|||
defmodule Pleroma.Repo.Migrations.UpgradeObanToV11 do
|
||||
use Ecto.Migration
|
||||
|
||||
def up, do: Oban.Migrations.up(version: 11)
|
||||
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
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
defmodule Pleroma.Repo.Migrations.EnsureMastofeSettings do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
alter table(:users) do
|
||||
add_if_not_exists(:mastofe_settings, :map)
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue