1
0
mirror of synced 2025-01-19 06:51:40 +03:00
This commit is contained in:
zYne 2007-06-05 21:02:21 +00:00
parent 84eaea70d1
commit e42bb0e506
2 changed files with 4 additions and 2 deletions

View File

@ -822,7 +822,7 @@ class Doctrine_Export extends Doctrine_Connection_Module
try {
$data = $table->getExportableFormat();
$this->conn->export->createTable($data[0], $data[1], $data[2]);
$this->conn->export->createTable($data['tableName'], $data['columns'], $data['options']);
} catch(Doctrine_Connection_Exception $e) {
// we only want to silence table already exists errors
if($e->getPortableCode() !== Doctrine::ERR_ALREADY_EXISTS) {

View File

@ -366,7 +366,9 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
$options['primary'] = $primary;
return array($this->getOption('tableName'), $columns, array_merge($this->getOptions(), $options));
return array('tableName' => $this->getOption('tableName'),
'columns' => $columns,
'options' => array_merge($this->getOptions(), $options));
}
/**
* exportConstraints