Skip to content

Commit

Permalink
Allow configuring a third-party migrator (#986)
Browse files Browse the repository at this point in the history
Configure a third-party migrator using the repo's `config` map.
  • Loading branch information
hamptokr authored Nov 15, 2023
1 parent 89dc12a commit 4ecb070
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/oban/migration.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4ecb070

Please sign in to comment.