Skip to content

Commit

Permalink
修正sqlite后缀问题
Browse files Browse the repository at this point in the history
  • Loading branch information
yunwuxin committed Sep 14, 2023
1 parent 4dc7668 commit 22c4405
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ protected function getDbConfig(): array
'pass' => $config['password'],
'port' => $config['hostport'],
'charset' => $config['charset'],
'suffix' => $config['suffix'] ?? '',
'table_prefix' => $config['prefix'],
];
} else {
Expand All @@ -70,6 +71,7 @@ protected function getDbConfig(): array
'pass' => explode(',', $config['password'])[0],
'port' => explode(',', $config['hostport'])[0],
'charset' => explode(',', $config['charset'])[0],
'suffix' => explode(',', $config['suffix'] ?? '')[0],
'table_prefix' => explode(',', $config['prefix'])[0],
];
}
Expand Down

0 comments on commit 22c4405

Please sign in to comment.