提交 2637fb75 编写于 作者: E Eileen M. Uchitelle

Merge pull request #23307 from mgrachev/fix-schema-migrations

Fix a bug with initialize schema_migrations table
......@@ -992,7 +992,7 @@ def assume_migrated_upto_version(version, migrations_paths)
if (duplicate = inserting.detect {|v| inserting.count(v) > 1})
raise "Duplicate migration #{duplicate}. Please renumber your migrations to resolve the conflict."
end
execute "INSERT INTO #{sm_table} (version) VALUES #{inserting.map {|v| '(#{v})'}.join(', ') }"
execute "INSERT INTO #{sm_table} (version) VALUES #{inserting.map {|v| "('#{v}')"}.join(', ') }"
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册