mirror of
https://github.com/typecho/typecho.git
synced 2025-01-17 12:38:28 +01:00
修复安装时删除原有数据表失败而无继续安装的BUG
This commit is contained in:
parent
5ef50b7599
commit
8a29052708
@ -368,7 +368,7 @@ list($prefixVersion, $suffixVersion) = explode('/', $currentVersion);
|
||||
if(_r('delete')) {
|
||||
//删除原有数据
|
||||
$dbPrefix = $config['prefix'];
|
||||
$tableArray = array($dbPrefix . 'comments', $dbPrefix . 'contents', $dbPrefix . 'metas', $dbPrefix . 'options', $dbPrefix . 'relationships', $dbPrefix . 'users',);
|
||||
$tableArray = array($dbPrefix . 'comments', $dbPrefix . 'contents', $dbPrefix . 'fields', $dbPrefix . 'metas', $dbPrefix . 'options', $dbPrefix . 'relationships', $dbPrefix . 'users',);
|
||||
foreach($tableArray as $table) {
|
||||
if($type == 'Mysql') {
|
||||
$installDb->query("DROP TABLE IF EXISTS `{$table}`");
|
||||
|
Loading…
x
Reference in New Issue
Block a user