If there are more than one files starting with the same number in their names then they should be either processed individually or reported as an error. Silently pretending as if there were only one of them is pretty misleading.
If there are two files with the same number in their names then either process all of them or report an error saying "File names must have different numbers in their names."
Current Behavior
Wrench executes only one of these files and ignores the rest.
Steps to Reproduce
Create two migration scripts and name them with the same number. For example, 20210831_123456_first.sql and 20210831_123456_second.sql
Define a CREATE TABLE first(...) in the first one and CREATE TABLE second(...) in the second one.
Do a migrate up
See your database. Table first will be there, table second will not.
Expected Behavior
If there are more than one files starting with the same number in their names then they should be either processed individually or reported as an error. Silently pretending as if there were only one of them is pretty misleading.
If there are two files with the same number in their names then either process all of them or report an error saying "File names must have different numbers in their names."
Current Behavior
Wrench executes only one of these files and ignores the rest.
Steps to Reproduce
20210831_123456_first.sql
and20210831_123456_second.sql
CREATE TABLE first(...)
in the first one andCREATE TABLE second(...)
in the second one.migrate up
first
will be there, tablesecond
will not.