$table['tt_youhua_Table']='%pre%tt_youhua';
$datainfo['tt_youhua_DataInfo']=array(
'ID' => array('log_ID', 'integer', '', 0),
'Post_ID' => array('log_Post_ID', 'integer', '', 0),
'Alias' => array('log_Alias', 'string', 250, ''),
'Intro' => array('log_Intro', 'string', '', ''),
'Content' => array('log_Content', 'string', '', ''),//聚合内容
'Meta' => array('log_Meta', 'string', '', ''),
);
function tt_youhua_CreateTable(){
global $zbp;
if ($zbp->db->ExistTable($zbp->db->sql->ReplacePre($GLOBALS['tt_youhua_Table'])) == false) {
$s = $zbp->db->sql->CreateTable($GLOBALS['table']['tt_youhua_Table'], $GLOBALS['datainfo']['tt_youhua_DataInfo']);
$s.='ALTER TABLE '.$zbp->db->dbpre.'tt_youhua add constraint log_Post_ID unique (log_Post_ID);';
$zbp->db->QueryMulit($s);
}
}
class tt_youhua extends Base
{
public function __construct()
{
global $zbp;
parent::__construct($GLOBALS['table']['tt_youhua_Table'],$GLOBALS['datainfo']['tt_youhua_DataInfo']);
}
}
function InstallPlugin_tt_youhua() {
tt_youhua_CreateTable();
}版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请通知我们,一经查实,本站将立刻删除。

微信扫一扫 




