protected function migrateUp($class) { $module = $this->applicationModuleName; // remove module if given if (($pos = mb_strpos($class, $this->moduleDelimiter)) !== false) { $module = mb_substr($class, 0, $pos); $class = mb_substr($class, $pos + mb_strlen($this->moduleDelimiter)); } $this->ensureBaseMigration($module); if (mb_strpos($class, self::BASE_MIGRATION) === 0) { return; } if (($ret = parent::migrateUp($class)) !== false) { // add module information to migration table $this->getDbConnection()->createCommand()->update($this->migrationTable, array('module' => $module), 'version=:version', array(':version' => $class)); } return $ret; }