/** * Run "up" a migration instance. * * @param string $file * @param int $batch * @param bool $pretend * * @return void */ protected function runUp($file, $batch, $pretend) { $instance = $this->resolve($file); if ($instance instanceof Migration) { $this->dispatch(new Migrate($instance)); } parent::runUp($file, $batch, $pretend); }
/** * Run "up" a migration instance. * * @param string $file * @param int $batch * @param bool $pretend * @return void */ protected function runUp($file, $batch, $pretend) { /** * Run our migrations first. * * @var Migration $migration */ $migration = $this->resolve($file); /** * Set the addon if there is * one contextually available. * * @var Addon $addon */ if ($addon = $this->getAddon()) { $migration->setAddon($addon); } if ($migration instanceof Migration) { $this->dispatch(new Migrate($migration)); } parent::runUp($file, $batch, $pretend); }
protected function runUp($file, $batch, $pretend) { echo "[32mMigrating:[m {$file}\n"; parent::runUp($file, $batch, $pretend); }