mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-23 20:44:06 +08:00
code style fixes
This commit is contained in:
@ -245,6 +245,10 @@ class Connection extends Component
|
|||||||
'dblib' => 'yii\db\mssql\Schema', // dblib drivers on GNU/Linux (and maybe other OSes) hosts
|
'dblib' => 'yii\db\mssql\Schema', // dblib drivers on GNU/Linux (and maybe other OSes) hosts
|
||||||
'cubrid' => 'yii\db\cubrid\Schema', // CUBRID
|
'cubrid' => 'yii\db\cubrid\Schema', // CUBRID
|
||||||
];
|
];
|
||||||
|
/**
|
||||||
|
* @var string Custom PDO wrapper class. If not set, it will use "PDO" or "yii\db\mssql\PDO" when MSSQL is used.
|
||||||
|
*/
|
||||||
|
public $pdoClass;
|
||||||
/**
|
/**
|
||||||
* @var Transaction the currently active transaction
|
* @var Transaction the currently active transaction
|
||||||
*/
|
*/
|
||||||
@ -253,10 +257,7 @@ class Connection extends Component
|
|||||||
* @var Schema the database schema
|
* @var Schema the database schema
|
||||||
*/
|
*/
|
||||||
private $_schema;
|
private $_schema;
|
||||||
/**
|
|
||||||
* @var string Custom PDO wrapper class. If not set, it will use "PDO" or "yii\db\mssql\PDO" when MSSQL is used.
|
|
||||||
*/
|
|
||||||
public $pdoClass;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a value indicating whether the DB connection is established.
|
* Returns a value indicating whether the DB connection is established.
|
||||||
|
@ -145,7 +145,7 @@ class DbFixtureManager extends Component
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->db->createCommand()->truncateTable($tableName)->execute();
|
$this->db->createCommand()->truncateTable($tableName)->execute();
|
||||||
$this->db->createCommand()->resetSequence($tableName,1)->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)) {
|
||||||
|
Reference in New Issue
Block a user