在依次建设这 10个数据表- DROP TABLE IF EXISTS uc_pm_messages_0;
- CREATE TABLE uc_pm_messages_0 (
- pmid mediumint(8) unsigned NOT NULL default '0',
- plid mediumint(8) unsigned NOT NULL default '0',
- authorid mediumint(8) unsigned NOT NULL default '0',
- message text NOT NULL,
- delstatus tinyint(1) unsigned NOT NULL default '0',
- dateline int(10) unsigned NOT NULL default '0',
- PRIMARY KEY (pmid),
- KEY plid (plid,delstatus,dateline),
- KEY dateline (plid,dateline)
- ) TYPE=MyISAM;
- DROP TABLE IF EXISTS uc_pm_messages_1;
- CREATE TABLE uc_pm_messages_1 (
- pmid mediumint(8) unsigned NOT NULL default '0',
- plid mediumint(8) unsigned NOT NULL default '0',
- authorid mediumint(8) unsigned NOT NULL default '0',
- message text NOT NULL,
- delstatus tinyint(1) unsigned NOT NULL default '0',
- dateline int(10) unsigned NOT NULL default '0',
- PRIMARY KEY (pmid),
- KEY plid (plid,delstatus,dateline),
- KEY dateline (plid,dateline)
- ) TYPE=MyISAM;
- DROP TABLE IF EXISTS uc_pm_messages_2;
- CREATE TABLE uc_pm_messages_2 (
- pmid mediumint(8) unsigned NOT NULL default '0',
- plid mediumint(8) unsigned NOT NULL default '0',
- authorid mediumint(8) unsigned NOT NULL default '0',
- message text NOT NULL,
- delstatus tinyint(1) unsigned NOT NULL default '0',
- dateline int(10) unsigned NOT NULL default '0',
- PRIMARY KEY (pmid),
- KEY plid (plid,delstatus,dateline),
- KEY dateline (plid,dateline)
- ) TYPE=MyISAM;
- DROP TABLE IF EXISTS uc_pm_messages_3;
- CREATE TABLE uc_pm_messages_3 (
- pmid mediumint(8) unsigned NOT NULL default '0',
- plid mediumint(8) unsigned NOT NULL default '0',
- authorid mediumint(8) unsigned NOT NULL default '0',
- message text NOT NULL,
- delstatus tinyint(1) unsigned NOT NULL default '0',
- dateline int(10) unsigned NOT NULL default '0',
- PRIMARY KEY (pmid),
- KEY plid (plid,delstatus,dateline),
- KEY dateline (plid,dateline)
- ) TYPE=MyISAM;
- DROP TABLE IF EXISTS uc_pm_messages_4;
- CREATE TABLE uc_pm_messages_4 (
- pmid mediumint(8) unsigned NOT NULL default '0',
- plid mediumint(8) unsigned NOT NULL default '0',
- authorid mediumint(8) unsigned NOT NULL default '0',
- message text NOT NULL,
- delstatus tinyint(1) unsigned NOT NULL default '0',
- dateline int(10) unsigned NOT NULL default '0',
- PRIMARY KEY (pmid),
- KEY plid (plid,delstatus,dateline),
- KEY dateline (plid,dateline)
- ) TYPE=MyISAM;
- DROP TABLE IF EXISTS uc_pm_messages_5;
- CREATE TABLE uc_pm_messages_5 (
- pmid mediumint(8) unsigned NOT NULL default '0',
- plid mediumint(8) unsigned NOT NULL default '0',
- authorid mediumint(8) unsigned NOT NULL default '0',
- message text NOT NULL,
- delstatus tinyint(1) unsigned NOT NULL default '0',
- dateline int(10) unsigned NOT NULL default '0',
- PRIMARY KEY (pmid),
- KEY plid (plid,delstatus,dateline),
- KEY dateline (plid,dateline)
- ) TYPE=MyISAM;
- DROP TABLE IF EXISTS uc_pm_messages_6;
- CREATE TABLE uc_pm_messages_6 (
- pmid mediumint(8) unsigned NOT NULL default '0',
- plid mediumint(8) unsigned NOT NULL default '0',
- authorid mediumint(8) unsigned NOT NULL default '0',
- message text NOT NULL,
- delstatus tinyint(1) unsigned NOT NULL default '0',
- dateline int(10) unsigned NOT NULL default '0',
- PRIMARY KEY (pmid),
- KEY plid (plid,delstatus,dateline),
- KEY dateline (plid,dateline)
- ) TYPE=MyISAM;
- DROP TABLE IF EXISTS uc_pm_messages_7;
- CREATE TABLE uc_pm_messages_7 (
- pmid mediumint(8) unsigned NOT NULL default '0',
- plid mediumint(8) unsigned NOT NULL default '0',
- authorid mediumint(8) unsigned NOT NULL default '0',
- message text NOT NULL,
- delstatus tinyint(1) unsigned NOT NULL default '0',
- dateline int(10) unsigned NOT NULL default '0',
- PRIMARY KEY (pmid),
- KEY plid (plid,delstatus,dateline),
- KEY dateline (plid,dateline)
- ) TYPE=MyISAM;
- DROP TABLE IF EXISTS uc_pm_messages_8;
- CREATE TABLE uc_pm_messages_8 (
- pmid mediumint(8) unsigned NOT NULL default '0',
- plid mediumint(8) unsigned NOT NULL default '0',
- authorid mediumint(8) unsigned NOT NULL default '0',
- message text NOT NULL,
- delstatus tinyint(1) unsigned NOT NULL default '0',
- dateline int(10) unsigned NOT NULL default '0',
- PRIMARY KEY (pmid),
- KEY plid (plid,delstatus,dateline),
- KEY dateline (plid,dateline)
- ) TYPE=MyISAM;
- DROP TABLE IF EXISTS uc_pm_messages_9;
- CREATE TABLE uc_pm_messages_9 (
- pmid mediumint(8) unsigned NOT NULL default '0',
- plid mediumint(8) unsigned NOT NULL default '0',
- authorid mediumint(8) unsigned NOT NULL default '0',
- message text NOT NULL,
- delstatus tinyint(1) unsigned NOT NULL default '0',
- dateline int(10) unsigned NOT NULL default '0',
- PRIMARY KEY (pmid),
- KEY plid (plid,delstatus,dateline),
- KEY dateline (plid,dateline)
- ) TYPE=MyISAM;
复制代码 |