src/Migrator.php
public function rollbackMigration($file)
    {
        $migration = $this->getMigrationObjectByFileName($file);

        $this->checkTransactionAndRun($migration, function () use ($migration, $file) {
            if ($migration->down() === false) {
                throw new Exception("<error>Can't rollback migration:</error> {$file}.php");
            }
        });

        $this->removeSuccessfulMigrationFromLog($file);
    }
public function rollbackMigration($file)
    {
        $migration = $this->getMigrationObjectByFileName($file);

        $this->checkTransactionAndRun($migration, function () use ($migration, $file) {
            if ($migration->down() === false) {
                throw new Exception("<error>Can't rollback migration:</error> {$file}.php");
            }
        });

        $this->removeSuccessfulMigrationFromLog($file);
    }
public function rollbackMigration ( $ file ) { $ migration = $ this -> getMigrationObjectByFileName ( $ file ) ; $ this -> checkTransactionAndRun ( $ migration , function ( ) use ( $ migration , $ file ) { if ( $ migration -> down ( ) === false ) { throw new Exception ( "<error>Can't rollback migration:</error> {$file}.php" ) ; } } ) ; $ this -> removeSuccessfulMigrationFromLog ( $ file ) ; }
Rollback a given migration.

@param string $file

@throws Exception

@return mixed
Rollback a given migration .