Beispiel #1
0
 /**
  * Execute schema update.
  */
 protected function synchroniseSchema()
 {
     if ($this->getName() != $this->initial->getName()) {
         //Executing renaming
         $this->commander->renameTable($this->initial->getName(), $this->getName());
     }
     //Some data has to be dropped before column updates
     $this->dropForeigns()->dropIndexes();
     //Generate update flow
     $this->synchroniseColumns()->synchroniseIndexes()->synchroniseForeigns();
 }