yii\console\controllers\BaseMigrateController::migrateUp PHP Method

migrateUp() protected method

Upgrades with the specified migration class.
protected migrateUp ( string $class ) : boolean
$class string the migration class name
return boolean whether the migration is successful
    protected function migrateUp($class)
    {
        if ($class === self::BASE_MIGRATION) {
            return true;
        }
        $this->stdout("*** applying {$class}\n", Console::FG_YELLOW);
        $start = microtime(true);
        $migration = $this->createMigration($class);
        if ($migration->up() !== false) {
            $this->addMigrationHistory($class);
            $time = microtime(true) - $start;
            $this->stdout("*** applied {$class} (time: " . sprintf('%.3f', $time) . "s)\n\n", Console::FG_GREEN);
            return true;
        } else {
            $time = microtime(true) - $start;
            $this->stdout("*** failed to apply {$class} (time: " . sprintf('%.3f', $time) . "s)\n\n", Console::FG_RED);
            return false;
        }
    }