You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This only applies to migration type sequential.
After this commit adding type hints to system migration class. The supplied version is parsed as int.
If I want to migrate to version 002 it will parse this as int and therefore remove the 00. The class will then check for migration file with the name 2.php and not 002.php. Resulting in an error, migration file not found.
This conflicts with the old sequential style and the docs.
The text was updated successfully, but these errors were encountered:
I tried to change my app from using 002.php to 2.php to comply with the new type hinting.
Then I get problems with MigrationRunner::findMigrations. This method checks the folder and validate the filename with regex /^\d{3}_(\w+)$/. The regex require three digits.
I'll suggest removing the int type hinting on MigrationRunner::version and MigrationRunner:checkMigrations.
Hello
This only applies to migration type sequential.
After this commit adding type hints to system migration class. The supplied version is parsed as int.
If I want to migrate to version 002 it will parse this as int and therefore remove the 00. The class will then check for migration file with the name 2.php and not 002.php. Resulting in an error, migration file not found.
This conflicts with the old sequential style and the docs.
The text was updated successfully, but these errors were encountered: