Merge pull request #154 from assertchris/bug/ignore-missing-widgets-extension

Ignore missing widgets extension
This commit is contained in:
Damian Mooyman 2015-03-10 11:23:24 +13:00
commit a81ff7067d

View File

@ -54,8 +54,11 @@ class BlogMigrationTask extends MigrationTask {
* @param type $stage
*/
protected function upClass($class, $stage = null) {
if(!class_exists($class)) return;
// Migrate all records
$items = $class::get();
if($count = $items->count()) {
$stageMessage = " in stage {$stage}";
$this->message("Migrating {$count} legacy {$class} records{$stageMessage}.");