<?php
//针对信件，增加推荐设置的升级
require './../inc/init.php';
header('Content-type: text/html; charset=utf-8');
require_once PHP168_PATH .'install/install.func.php';


@set_time_limit(0);
error_reporting(E_ALL);
$core->CONFIG['debug'] = 1;

$sql = "ALTER TABLE `p8_letter_item` ADD `recommend` TINYINT( 1 ) NOT NULL DEFAULT '0' AFTER `age`;";

$sql = get_install_sql($DB_master, $sql, $core->TABLE_, true);
foreach($sql as $v){
	$DB_master->query($v);
}
echo "升级完成，请进入后台更新全站缓存！";