Commit 5c2c79e7 by Mark

fixed sequence reset

parent 6eb6e226
...@@ -146,6 +146,7 @@ class DbFixtureManager extends Component ...@@ -146,6 +146,7 @@ class DbFixtureManager extends Component
} }
$this->db->createCommand()->truncateTable($tableName)->execute(); $this->db->createCommand()->truncateTable($tableName)->execute();
$this->db->createCommand()->resetSequence($tableName,1)->execute();
$fileName = $this->basePath . '/' . $tableName . '.php'; $fileName = $this->basePath . '/' . $tableName . '.php';
if (!is_file($fileName)) { if (!is_file($fileName)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment