未验证 提交 1fa91ee4 编写于 作者: R Ryuta Kamizono 提交者: GitHub

Merge pull request #32594 from utilum/structure_dump_create_table

Fix test to allow IF NOT EXISTS in structure:dump
......@@ -67,8 +67,8 @@ def db_migrate_and_schema_dump_and_load(namespace, expected_database, format)
else
schema_dump = File.read("db/#{format}.sql")
schema_dump_animals = File.read("db/animals_#{format}.sql")
assert_match(/CREATE TABLE \"books\"/, schema_dump)
assert_match(/CREATE TABLE \"dogs\"/, schema_dump_animals)
assert_match(/CREATE TABLE (?:IF NOT EXISTS )?\"books\"/, schema_dump)
assert_match(/CREATE TABLE (?:IF NOT EXISTS )?\"dogs\"/, schema_dump_animals)
end
rails "db:#{format}:load"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册