From 4ecb070df809ef540282997bdfa3e8aa363846ff Mon Sep 17 00:00:00 2001 From: Kramer Hampton Date: Wed, 15 Nov 2023 10:40:57 -0500 Subject: [PATCH] Allow configuring a third-party migrator (#986) Configure a third-party migrator using the repo's `config` map. --- lib/oban/migration.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/oban/migration.ex b/lib/oban/migration.ex index 61bdcac8..5120eecd 100644 --- a/lib/oban/migration.ex +++ b/lib/oban/migration.ex @@ -194,6 +194,7 @@ defmodule Oban.Migration do case repo().__adapter__() do Ecto.Adapters.Postgres -> Oban.Migrations.Postgres Ecto.Adapters.SQLite3 -> Oban.Migrations.SQLite + _ -> Map.fetch!(repo().config(), :migrator) end end end