Update 'src/Schema/Db/Table.php'
This commit is contained in:
@@ -626,9 +626,11 @@ class Table
|
|||||||
*/
|
*/
|
||||||
public function create()
|
public function create()
|
||||||
{
|
{
|
||||||
$this->getAdapter()->createTable($this);
|
if (!$this->getAdapter()->hasTable($this->name)) {
|
||||||
$this->saveData();
|
$this->getAdapter()->createTable($this);
|
||||||
$this->reset(); // reset pending changes
|
$this->saveData();
|
||||||
|
$this->reset(); // reset pending changes
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user