예제 #1
0
 /**
  * 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);
 }
예제 #2
0
 /**
  * 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);
 }
예제 #3
0
 protected function runUp($file, $batch, $pretend)
 {
     echo "Migrating: {$file}\n";
     parent::runUp($file, $batch, $pretend);
 }