Error when restoring from full schema
Reported by Craig Marvelley | February 23rd, 2009 @ 09:55 PM
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
No comments found
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป