logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: 87c468f009e048634b705452abbdf2ef489cd055
parent 0e48c80d7fd65cedaccd2ecbfbd49bb0f56d6f4d
Author: Alexander Strizhakov <alex.strizhakov@gmail.com>
Date:   Wed, 20 Jan 2021 20:07:24 +0300

use correct versions for oban migrations

Diffstat:

Mpriv/repo/migrations/20190730055101_add_oban_jobs_table.exs5++++-
Mpriv/repo/migrations/20190917100019_update_oban.exs2+-
Mpriv/repo/migrations/20200402063221_update_oban_jobs_table.exs2+-
3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/priv/repo/migrations/20190730055101_add_oban_jobs_table.exs b/priv/repo/migrations/20190730055101_add_oban_jobs_table.exs @@ -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 diff --git a/priv/repo/migrations/20190917100019_update_oban.exs b/priv/repo/migrations/20190917100019_update_oban.exs @@ -6,6 +6,6 @@ defmodule Pleroma.Repo.Migrations.UpdateOban do end def down do - Oban.Migrations.down(version: 2) + Oban.Migrations.down(version: 3) end end diff --git a/priv/repo/migrations/20200402063221_update_oban_jobs_table.exs b/priv/repo/migrations/20200402063221_update_oban_jobs_table.exs @@ -6,6 +6,6 @@ defmodule Pleroma.Repo.Migrations.UpdateObanJobsTable do end def down do - Oban.Migrations.down(version: 7) + Oban.Migrations.down(version: 8) end end