/** * Return new DDL Table object * * @param string $tableName the table name * @param string $schemaName the database/schema name * @return Table */ public function newTable($tableName = null, $schemaName = null) { $table = new Table(); if ($tableName !== null) { $table->setName($tableName); } if ($schemaName !== null) { $table->setSchema($schemaName); } if (isset($this->_config['engine'])) { $table->setOption('type', $this->_config['engine']); } return $table; }