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