Ejemplo n.º 1
0
 public function reverseSchema(\blaze\ds\meta\SchemaMetaData $smd)
 {
     foreach ($smd->getTables() as $table) {
         $this->reverseTable($table);
     }
     foreach ($smd->getViews() as $view) {
         $this->reverseView($view);
     }
 }
Ejemplo n.º 2
0
 public function addSchema(\blaze\ds\meta\SchemaMetaData $schema, $newName = null)
 {
     $this->checkClosed();
     $dbSchema = $this->getSchema($this->database);
     foreach ($schema->getTables() as $table) {
         $dbSchema->addTable($table);
     }
     foreach ($schema->getViews() as $view) {
         $dbSchema->addView($view);
     }
 }