public function reverseSchema(\blaze\ds\meta\SchemaMetaData $smd) { foreach ($smd->getTables() as $table) { $this->reverseTable($table); } foreach ($smd->getViews() as $view) { $this->reverseView($view); } }
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); } }