framework/console/controllers/BaseMigrateController.php
protected function migrateToTime($time)
    {
        $count = 0;
        $migrations = array_values($this->getMigrationHistory(null));
        while ($count < count($migrations) && $migrations[$count] > $time) {
            ++$count;
        }
        if ($count === 0) {
            $this->stdout("Nothing needs to be done.\n", Console::FG_GREEN);
        } else {
            $this->actionDown($count);
        }
    }
protected function migrateToTime($time)
    {
        $count = 0;
        $migrations = array_values($this->getMigrationHistory(null));
        while ($count < count($migrations) && $migrations[$count] > $time) {
            ++$count;
        }
        if ($count === 0) {
            $this->stdout("Nothing needs to be done.\n", Console::FG_GREEN);
        } else {
            $this->actionDown($count);
        }
    }
protected function migrateToTime ( $ time ) { $ count = 0 ; $ migrations = array_values ( $ this -> getMigrationHistory ( null ) ) ; while ( $ count < count ( $ migrations ) && $ migrations [ $ count ] > $ time ) { ++ $ count ; } if ( $ count === 0 ) { $ this -> stdout ( "Nothing needs to be done.\n" , Console :: FG_GREEN ) ; } else { $ this -> actionDown ( $ count ) ; } }
Migrates to the specified apply time in the past.
@param int $time UNIX timestamp value.
Migrates to the specified apply time in the past .