- DROP TABLE IF EXISTS cdb_crons;
- CREATE TABLE cdb_crons (
- cronid smallint(6) unsigned NOT NULL AUTO_INCREMENT,
- available tinyint(1) NOT NULL DEFAULT '0',
- `type` enum('user','system') NOT NULL DEFAULT 'user',
- `name` char(50) NOT NULL DEFAULT '',
- filename char(50) NOT NULL DEFAULT '',
- lastrun int(10) unsigned NOT NULL DEFAULT '0',
- nextrun int(10) unsigned NOT NULL DEFAULT '0',
- weekday tinyint(1) NOT NULL DEFAULT '0',
- `day` tinyint(2) NOT NULL DEFAULT '0',
- `hour` tinyint(2) NOT NULL DEFAULT '0',
- `minute` char(36) NOT NULL DEFAULT '',
- PRIMARY KEY (cronid),
- KEY nextrun (available,nextrun)
- ) TYPE=MyISAM AUTO_INCREMENT=15;
- INSERT INTO cdb_crons VALUES ('1','1','system','清空今日发帖数','todayposts_daily.inc.php','1170601081','1170604800','-1','-1','0','0');
- INSERT INTO cdb_crons VALUES ('2','1','system','清空本月在线时间','onlinetime_monthly.inc.php','1170601081','1172678400','-1','1','0','0');
- INSERT INTO cdb_crons VALUES ('3','1','system','每日数据清理','cleanup_daily.inc.php','1170601083','1170624600','-1','-1','5','30');
- INSERT INTO cdb_crons VALUES ('4','1','system','生日统计与邮件祝福','birthdays_daily.inc.php','1170601084','1170604800','-1','-1','0','0');
- INSERT INTO cdb_crons VALUES ('5','1','system','主题回复通知','notify_daily.inc.php','1170601084','1170622800','-1','-1','5','00');
- INSERT INTO cdb_crons VALUES ('6','1','system','每日公告清理','announcements_daily.inc.php','1170601084','1170604800','-1','-1','0','0');
- INSERT INTO cdb_crons VALUES ('7','1','system','限时操作清理','threadexpiries_hourly.inc.php','1170601084','1170622800','-1','-1','5','0');
- INSERT INTO cdb_crons VALUES ('8','1','system','论坛推广清理','promotions_hourly.inc.php','1170601094','1170604800','-1','-1','0','00');
- INSERT INTO cdb_crons VALUES ('9','1','system','每月主题清理','cleanup_monthly.inc.php','0','1170600452','-1','1','6','00');
- INSERT INTO cdb_crons VALUES ('10','1','system','每日 X-Space更新用户','supe_daily.inc.php','0','1170600452','-1','-1','0','0');
- INSERT INTO cdb_crons VALUES ('12','1','system','道具自动补货','magics_daily.inc.php','0','1170600452','-1','-1','0','0');
- INSERT INTO cdb_crons VALUES ('13','1','system','每日验证问答更新','secqaa_daily.inc.php','0','1170600452','-1','-1','6','0');
- INSERT INTO cdb_crons VALUES ('14','1','system','每日标签更新','tags_daily.inc.php','0','1170600452','-1','-1','0','0');
复制代码- DROP TABLE IF EXISTS cdb_sessions;
- CREATE TABLE cdb_sessions (
- sid char(6) binary NOT NULL DEFAULT '',
- ip1 tinyint(3) unsigned NOT NULL DEFAULT '0',
- ip2 tinyint(3) unsigned NOT NULL DEFAULT '0',
- ip3 tinyint(3) unsigned NOT NULL DEFAULT '0',
- ip4 tinyint(3) unsigned NOT NULL DEFAULT '0',
- uid mediumint(8) unsigned NOT NULL DEFAULT '0',
- username char(15) NOT NULL DEFAULT '',
- groupid smallint(6) unsigned NOT NULL DEFAULT '0',
- styleid smallint(6) unsigned NOT NULL DEFAULT '0',
- invisible tinyint(1) NOT NULL DEFAULT '0',
- `action` tinyint(1) unsigned NOT NULL DEFAULT '0',
- lastactivity int(10) unsigned NOT NULL DEFAULT '0',
- lastolupdate int(10) unsigned NOT NULL DEFAULT '0',
- pageviews smallint(6) unsigned NOT NULL DEFAULT '0',
- seccode mediumint(6) unsigned NOT NULL DEFAULT '0',
- fid smallint(6) unsigned NOT NULL DEFAULT '0',
- tid mediumint(8) unsigned NOT NULL DEFAULT '0',
- bloguid mediumint(8) unsigned NOT NULL DEFAULT '0',
- UNIQUE KEY sid (sid),
- KEY uid (uid),
- KEY bloguid (bloguid)
- ) TYPE=HEAP;
复制代码 |