|
|
@@ -626,9 +626,11 @@ class Table
|
|
|
*/
|
|
|
public function create()
|
|
|
{
|
|
|
- $this->getAdapter()->createTable($this);
|
|
|
- $this->saveData();
|
|
|
- $this->reset(); // reset pending changes
|
|
|
+ if (!$this->getAdapter()->hasTable($this->name)) {
|
|
|
+ $this->getAdapter()->createTable($this);
|
|
|
+ $this->saveData();
|
|
|
+ $this->reset(); // reset pending changes
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|