Skip to content

Commit 644112a

Browse files
authored
Don't overwrite existing dynamic repo (#572)
1 parent 6ee09bc commit 644112a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/ecto/migrator.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ defmodule Ecto.Migrator do
552552
end
553553

554554
defp lock_for_migrations(lock_or_migration_number, repo, opts, fun) do
555-
dynamic_repo = Keyword.get(opts, :dynamic_repo, repo)
555+
dynamic_repo = Keyword.get(opts, :dynamic_repo, repo.get_dynamic_repo())
556556
skip_table_creation = Keyword.get(opts, :skip_table_creation, false)
557557
previous_dynamic_repo = repo.put_dynamic_repo(dynamic_repo)
558558

0 commit comments

Comments
 (0)