这样
- drop table if exists modapp
- CREATE TABLE modapp (
- appid smallint(5) unsigned DEFAULT '0' NOT NULL auto_increment,
- userid smallint(4) NOT NULL,
- theone varchar(100) NOT NULL,
- wichforum varchar(100) NOT NULL,
- connection varchar(100) NOT NULL,
- internet varchar(100) NOT NULL,
- other varchar(100) NOT NULL,
- other_forum_names varchar(100) NOT NULL,
- english varchar(100) NOT NULL,
- other_m varchar(100) NOT NULL,
- name varchar(100) NOT NULL,
- email varchar(100) NOT NULL,
- username varchar(100) NOT NULL,
- websites varchar(100) NOT NULL,
- about varchar(200) NOT NULL,
- ratetotal varchar(100) NOT NULL,
- PRIMARY KEY (appid)
- );
复制代码
- drop table if exists modappuser
- CREATE TABLE modappuser (
- rateid int(10) unsigned NOT NULL auto_increment,
- userid int(10) unsigned DEFAULT '0' NOT NULL,
- rateuserid int(10) unsigned DEFAULT '0' NOT NULL,
- rateusername varchar(10) NOT NULL,
- rate varchar(100) DEFAULT '0' NOT NULL,
- PRIMARY KEY (rateid)
- );
复制代码
数据库升级有错的,用这个~~~ |