use explicitly oban migration version
authorAlexander Strizhakov <alex.strizhakov@gmail.com>
Sun, 17 Jan 2021 06:58:07 +0000 (09:58 +0300)
committerAlexander Strizhakov <alex.strizhakov@gmail.com>
Sun, 17 Jan 2021 06:58:07 +0000 (09:58 +0300)
priv/repo/migrations/20210115205649_upgrade_oban_jobs_to_v9.exs

index 067e62e8c4dbd857ec1c4cf6af9ded1955551ac8..bfb40557962bcf52e826e9d6cbd6b9988d8ed641 100644 (file)
@@ -5,6 +5,11 @@
 defmodule Pleroma.Repo.Migrations.UpgradeObanJobsToV9 do
   use Ecto.Migration
 
-  defdelegate up, to: Oban.Migrations
-  defdelegate down, to: Oban.Migrations
+  def up do
+    Oban.Migrations.up(version: 9)
+  end
+
+  def down do
+    Oban.Migrations.down(version: 9)
+  end
 end