Update 'src/Schema/Db/Table.php'

This commit is contained in:
ahwelp
2019-07-31 23:11:52 +00:00
parent 8138187667
commit ad50a598af
+2
View File
@@ -626,10 +626,12 @@ class Table
*/ */
public function create() public function create()
{ {
if (!$this->getAdapter()->hasTable($this->name)) {
$this->getAdapter()->createTable($this); $this->getAdapter()->createTable($this);
$this->saveData(); $this->saveData();
$this->reset(); // reset pending changes $this->reset(); // reset pending changes
} }
}
/** /**
* Updates a table from the object instance. * Updates a table from the object instance.