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

This commit is contained in:
ahwelp
2019-07-31 23:11:52 +00:00
parent 8138187667
commit ad50a598af
+5 -3
View File
@@ -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
}
} }
/** /**