/** * Execute the console command. * * @return void */ public function fire() { // The pretend option can be used for "simulating" the migration and grabbing // the SQL queries that would fire if the migration were to be run against // a database for real, which is helpful for double checking migrations. $pretend = $this->input->getOption('pretend'); $path = $this->getMigrationPath(); $this->migrator->run($path, $pretend); foreach ($this->migrator->getNotes() as $note) { $this->output->writeln($note); } }