Exemplo n.º 1
0
 public function performAction()
 {
     /** @var Table[] $tables */
     $tables = array(Points::table(), Segment5::table(), Segment10::table(), Segment50::table(), Segment100::table(), Segment500::table(), Segment1k::table(), Segment5k::table(), Segment10k::table(), Segment10s::table(), Segment60s::table());
     $log = new Log('colored-stdout');
     if ($this->wipe) {
         foreach ($tables as $table) {
             $table->migration()->setLog($log)->setDryRun($this->dryRun)->rollback();
         }
     }
     foreach ($tables as $table) {
         $table->migration()->setLog($log)->setDryRun($this->dryRun)->apply();
     }
 }