修复安装时删除原有数据表失败而无继续安装的BUG

This commit is contained in:
byends 2013-12-10 22:45:54 +08:00
parent 5ef50b7599
commit 8a29052708

View File

@ -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}`");