mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 07:02:47 +08:00
改进数据表的前缀设置
This commit is contained in:
@@ -69,6 +69,8 @@ class Model {
|
||||
|
||||
if(isset($config['prefix'])) {
|
||||
$this->tablePrefix = $config['prefix'];
|
||||
}else{
|
||||
$this->tablePrefix = Config::get('database.prefix');
|
||||
}
|
||||
if(isset($config['connection'])) {
|
||||
$this->connection = $config['connection'];
|
||||
|
||||
Reference in New Issue
Block a user