mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-21 10:57:08 +08:00
DbConnection::tablePrefix default value added
This commit is contained in:
@ -219,10 +219,9 @@ class Connection extends Component
|
|||||||
/**
|
/**
|
||||||
* @var string the common prefix or suffix for table names. If a table name is given
|
* @var string the common prefix or suffix for table names. If a table name is given
|
||||||
* as `{{%TableName}}`, then the percentage character `%` will be replaced with this
|
* as `{{%TableName}}`, then the percentage character `%` will be replaced with this
|
||||||
* property value. For example, `{{%post}}` becomes `{{tbl_post}}` if this property is
|
* property value. For example, `{{%post}}` becomes `{{tbl_post}}`.
|
||||||
* set as `"tbl_"`.
|
|
||||||
*/
|
*/
|
||||||
public $tablePrefix;
|
public $tablePrefix = 'tbl_';
|
||||||
/**
|
/**
|
||||||
* @var array mapping between PDO driver names and [[Schema]] classes.
|
* @var array mapping between PDO driver names and [[Schema]] classes.
|
||||||
* The keys of the array are PDO driver names while the values the corresponding
|
* The keys of the array are PDO driver names while the values the corresponding
|
||||||
|
Reference in New Issue
Block a user