Skip to content

Commit

Permalink
Don't overwrite existing dynamic repo (#572)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gigitsu authored Nov 5, 2023
1 parent 6ee09bc commit 644112a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ecto/migrator.ex
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ defmodule Ecto.Migrator do
end

defp lock_for_migrations(lock_or_migration_number, repo, opts, fun) do
dynamic_repo = Keyword.get(opts, :dynamic_repo, repo)
dynamic_repo = Keyword.get(opts, :dynamic_repo, repo.get_dynamic_repo())
skip_table_creation = Keyword.get(opts, :skip_table_creation, false)
previous_dynamic_repo = repo.put_dynamic_repo(dynamic_repo)

Expand Down

0 comments on commit 644112a

Please sign in to comment.