Ignore missing widgets extension

This commit is contained in:
Christopher Pitt 2015-03-10 10:45:39 +13:00
parent 199653197e
commit 541822de92

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}.");