Browse Source

Merge pull request #1649 from Ragazzo/dbfixture_manager_fix

fixed sequence reset
tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
9623c129df
  1. 1
      framework/yii/test/DbFixtureManager.php

1
framework/yii/test/DbFixtureManager.php

@ -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)) {

Loading…
Cancel
Save