use correct versions for oban migrations

This commit is contained in:
Alexander Strizhakov 2021-01-20 20:07:24 +03:00
parent 0e48c80d7f
commit 87c468f009
No known key found for this signature in database
GPG Key ID: 022896A53AEF1381
3 changed files with 6 additions and 3 deletions

View File

@ -1,6 +1,9 @@
defmodule Pleroma.Repo.Migrations.AddObanJobsTable do
use Ecto.Migration
defdelegate up, to: Oban.Migrations
def up do
Oban.Migrations.up(version: 2)
end
defdelegate down, to: Oban.Migrations
end

View File

@ -6,6 +6,6 @@ def up do
end
def down do
Oban.Migrations.down(version: 2)
Oban.Migrations.down(version: 3)
end
end

View File

@ -6,6 +6,6 @@ def up do
end
def down do
Oban.Migrations.down(version: 7)
Oban.Migrations.down(version: 8)
end
end