src/Commands/RollbackCommand.php
protected function markRolledBackWithConfirmation($migration)
    {
        $helper = $this->getHelper('question');
        $question = new ConfirmationQuestion("<error>Migration $migration was not found.\r\nDo you want to mark it as rolled back? (y/n)</error>\r\n", false);

        if (!$helper->ask($this->input, $this->output, $question)) {
            $this->abort();
        }

        $this->migrator->removeSuccessfulMigrationFromLog($migration);
    }
protected function markRolledBackWithConfirmation($migration)
    {
        $helper = $this->getHelper('question');
        $question = new ConfirmationQuestion("<error>Migration $migration was not found.\r\nDo you want to mark it as rolled back? (y/n)</error>\r\n", false);

        if (!$helper->ask($this->input, $this->output, $question)) {
            $this->abort();
        }

        $this->migrator->removeSuccessfulMigrationFromLog($migration);
    }
protected function markRolledBackWithConfirmation ( $ migration ) { $ helper = $ this -> getHelper ( 'question' ) ; $ question = new ConfirmationQuestion ( "<error>Migration $migration was not found.\r\nDo you want to mark it as rolled back? (y/n)</error>\r\n" , false ) ; if ( ! $ helper -> ask ( $ this -> input , $ this -> output , $ question ) ) { $ this -> abort ( ) ; } $ this -> migrator -> removeSuccessfulMigrationFromLog ( $ migration ) ; }
Ask a user to confirm rolling back non-existing migration and remove it from log.

@param $migration

@return void
Ask a user to confirm rolling back non - existing migration and remove it from log .