installsql.php
资源名称:BBWPS.rar [点击查看]
上传用户:yttaitong
上传日期:2009-05-10
资源大小:128k
文件大小:2k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
PHP
- <?php
- /*
- [BBWPS!] (C)2006-2010 小蜜蜂版权所有.
- This is NOT a freeware, use is subject to license terms
- 时间:2007年12月
- 描述:
- */
- $sql = "
- DROP TABLE IF EXISTS ".$prefix."sort;
- CREATE TABLE ".$prefix."sort (
- sid int(10) unsigned NOT NULL auto_increment,
- sname varchar(30) NOT NULL ,
- slevel int(1) NOT NULL ,
- sparent int(10) NOT NULL ,
- seq int(8) NOT NULL ,
- PRIMARY KEY (`sid`)
- ) TYPE=MyISAM COMMENT='保存分类';
- DROP TABLE IF EXISTS ".$prefix."revert;
- CREATE TABLE ".$prefix."revert (
- id int(10) unsigned NOT NULL auto_increment,
- mid int(10) NOT NULL,
- username varchar(100) NOT NULL ,
- content varchar(250) NOT NULL ,
- date int(10) NOT NULL,
- ip varchar(30) NOT NULL,
- PRIMARY KEY (`id`)
- ) TYPE=MyISAM COMMENT='保存回复信息';
- DROP TABLE IF EXISTS ".$prefix."city;
- CREATE TABLE ".$prefix."city (
- cid int(10) unsigned NOT NULL auto_increment,
- cname varchar(30) NOT NULL ,
- clevel int(1) NOT NULL ,
- cparent int(10) NOT NULL ,
- seq int(8) NOT NULL ,
- PRIMARY KEY (cid)
- ) TYPE=MyISAM COMMENT='保存城市';
- DROP TABLE IF EXISTS ".$prefix."setting;
- CREATE TABLE ".$prefix."setting (
- id int(3) unsigned NOT NULL auto_increment,
- list_num int(3) NOT NULL ,
- new_message_num int(3) NOT NULL,
- hot_message_num int(3) NOT NULL,
- sort_update_num int(3) NOT NULL ,
- sort_num int(3) NOT NULL,
- vouch_message_num int(3) NOT NULL,
- city varchar(10) NOT NULL,
- day int(3) NOT NULL,
- PRIMARY KEY (`id`)
- ) TYPE=MyISAM COMMENT='保存系统参数设置';
- insert into ".$prefix."setting (list_num,new_message_num,hot_message_num,sort_update_num,sort_num,vouch_message_num,city,day) values ('10','5','5','5','5','5','1','30');
- DROP TABLE IF EXISTS ".$prefix."message;
- CREATE TABLE ".$prefix."message (
- mid int(10) unsigned NOT NULL auto_increment,
- sid int(10) NOT NULL,
- cid int(10) NOT NULL ,
- username varchar(100) NOT NULL ,
- title varchar(100) NOT NULL,
- content text NOT NULL,
- picture varchar(100) NOT NULL,
- oprice int(10) NOT NULL ,
- nprice int(10) NOT NULL ,
- btime int(10) NOT NULL ,
- etime int(10) NOT NULL ,
- hits int(10) NOT NULL,
- vouch int(1) NOT NULL,
- status int(1) NOT NULL,
- tag varchar(20) NOT NULL,
- PRIMARY KEY (`mid`)
- ) TYPE=MyISAM COMMENT='存储用户发表的信息';
- ";
- ?>