When trying to restore from a full schema dump, I get the
following errors:
Notice: Undefined property: MigrateShell::$current_version in
/Applications/xampp/xamppfiles/htdocs/homeshield/app/vendors/shells/migrate.php
on line 327
Notice: Undefined index:
/Applications/xampp/xamppfiles/htdocs/homeshield/app/config/migrations/full_schema.yml
in
/Applications/xampp/xamppfiles/htdocs/homeshield/app/vendors/shells/migrate.php
on line 688
Warning:
MigrateShell::include(/Applications/xampp/xamppfiles/htdocs/homeshield/app/config/migrations/):
failed to open stream: Invalid argument in
/Applications/xampp/xamppfiles/htdocs/homeshield/app/vendors/shells/migrate.php
on line 695
Warning: MigrateShell::include(): Failed opening
'/Applications/xampp/xamppfiles/htdocs/homeshield/app/config/migrations/'
for inclusion
(include_path='.:/Applications/xampp/xamppfiles/lib/php/pear') in
/Applications/xampp/xamppfiles/htdocs/homeshield/app/vendors/shells/migrate.php
on line 695
I've had a look at the code around those errors, and I think
it's down to the regex being used to load migrations files -
"[0-9]+_.+.(yml|php)" - which will exclude the "full_schema.yml"
file, causing the undefined index warnings. This is happening both
in version 4.0 and the 'trunk' version.
If this could be addressed, I'd be most grateful.
Best, Craig