Zeile 3 | Zeile 3 |
---|
* MyBB 1.2 * Copyright � 2006 MyBB Group, All Rights Reserved *
|
* MyBB 1.2 * Copyright � 2006 MyBB Group, All Rights Reserved *
|
* Website: http://www.mybboard.com * License: http://www.mybboard.com/eula.html
| * Website: http://www.mybboard.net * License: http://www.mybboard.net/eula.html
|
*
|
*
|
* $Id: mysql_db_tables.php 2077 2006-08-14 07:27:40Z chris $
| * $Id: mysql_db_tables.php 3531 2007-12-02 01:21:43Z chris $
|
*/
$tables[] = "CREATE TABLE mybb_adminlog (
| */
$tables[] = "CREATE TABLE mybb_adminlog (
|
Zeile 15 | Zeile 15 |
---|
scriptname varchar(50) NOT NULL default '', action varchar(50) NOT NULL default '', querystring varchar(150) NOT NULL default '',
|
scriptname varchar(50) NOT NULL default '', action varchar(50) NOT NULL default '', querystring varchar(150) NOT NULL default '',
|
ipaddress varchar(50) NOT NULL default '' ) TYPE=MyISAM;";
| ipaddress varchar(50) NOT NULL default '', KEY scriptname (scriptname, action) ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_adminoptions ( uid int(10) NOT NULL default '0', cpstyle varchar(50) NOT NULL default '',
|
$tables[] = "CREATE TABLE mybb_adminoptions ( uid int(10) NOT NULL default '0', cpstyle varchar(50) NOT NULL default '',
|
notes text NOT NULL default '',
| notes text NOT NULL,
|
permsset int(1) NOT NULL default '0', caneditsettings char(3) NOT NULL default '', caneditann char(3) NOT NULL default '',
| permsset int(1) NOT NULL default '0', caneditsettings char(3) NOT NULL default '', caneditann char(3) NOT NULL default '',
|
Zeile 44 | Zeile 45 |
---|
canrunmaint char(3) NOT NULL default '', canrundbtools char(3) NOT NULL default '', PRIMARY KEY (uid)
|
canrunmaint char(3) NOT NULL default '', canrundbtools char(3) NOT NULL default '', PRIMARY KEY (uid)
|
) TYPE=MyISAM;";
| ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_adminsessions ( sid varchar(32) NOT NULL default '',
| $tables[] = "CREATE TABLE mybb_adminsessions ( sid varchar(32) NOT NULL default '',
|
Zeile 53 | Zeile 54 |
---|
ip varchar(40) NOT NULL default '', dateline bigint(30) NOT NULL default '0', lastactive bigint(30) NOT NULL default '0'
|
ip varchar(40) NOT NULL default '', dateline bigint(30) NOT NULL default '0', lastactive bigint(30) NOT NULL default '0'
|
) TYPE=MyISAM;";
| ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_announcements (
|
$tables[] = "CREATE TABLE mybb_announcements (
|
Zeile 61 | Zeile 62 |
---|
fid int(10) NOT NULL default '0', uid int unsigned NOT NULL default '0', subject varchar(120) NOT NULL default '',
|
fid int(10) NOT NULL default '0', uid int unsigned NOT NULL default '0', subject varchar(120) NOT NULL default '',
|
message text NOT NULL default '',
| message text NOT NULL,
|
startdate bigint(30) NOT NULL default '0', enddate bigint(30) NOT NULL default '0', allowhtml char(3) NOT NULL default '', allowmycode char(3) NOT NULL default '', allowsmilies char(3) NOT NULL default '',
|
startdate bigint(30) NOT NULL default '0', enddate bigint(30) NOT NULL default '0', allowhtml char(3) NOT NULL default '', allowmycode char(3) NOT NULL default '', allowsmilies char(3) NOT NULL default '',
|
| KEY fid (fid),
|
PRIMARY KEY (aid)
|
PRIMARY KEY (aid)
|
) TYPE=MyISAM;";
| ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_attachments ( aid int unsigned NOT NULL auto_increment,
| $tables[] = "CREATE TABLE mybb_attachments ( aid int unsigned NOT NULL auto_increment,
|
Zeile 82 | Zeile 84 |
---|
downloads int unsigned NOT NULL default '0', visible int(1) NOT NULL default '0', thumbnail varchar(120) NOT NULL default '',
|
downloads int unsigned NOT NULL default '0', visible int(1) NOT NULL default '0', thumbnail varchar(120) NOT NULL default '',
|
| KEY posthash (posthash), KEY pid (pid, visible), KEY uid (uid),
|
PRIMARY KEY (aid)
|
PRIMARY KEY (aid)
|
) TYPE=MyISAM;";
| ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_attachtypes (
|
$tables[] = "CREATE TABLE mybb_attachtypes (
|
Zeile 94 | Zeile 99 |
---|
maxsize int(15) NOT NULL default '0', icon varchar(100) NOT NULL default '', PRIMARY KEY (atid)
|
maxsize int(15) NOT NULL default '0', icon varchar(100) NOT NULL default '', PRIMARY KEY (atid)
|
) TYPE=MyISAM;";
| ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_awaitingactivation ( aid int unsigned NOT NULL auto_increment,
| $tables[] = "CREATE TABLE mybb_awaitingactivation ( aid int unsigned NOT NULL auto_increment,
|
Zeile 105 | Zeile 110 |
---|
oldgroup bigint(30) NOT NULL default '0', misc varchar(255) NOT NULL default '', PRIMARY KEY (aid)
|
oldgroup bigint(30) NOT NULL default '0', misc varchar(255) NOT NULL default '', PRIMARY KEY (aid)
|
) TYPE=MyISAM;";
| ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_badwords ( bid int unsigned NOT NULL auto_increment, badword varchar(100) NOT NULL default '', replacement varchar(100) NOT NULL default '', PRIMARY KEY (bid)
|
$tables[] = "CREATE TABLE mybb_badwords ( bid int unsigned NOT NULL auto_increment, badword varchar(100) NOT NULL default '', replacement varchar(100) NOT NULL default '', PRIMARY KEY (bid)
|
) TYPE=MyISAM;";
| ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_banned ( uid int unsigned NOT NULL default '0', gid int unsigned NOT NULL default '0', oldgroup int unsigned NOT NULL default '0',
|
$tables[] = "CREATE TABLE mybb_banned ( uid int unsigned NOT NULL default '0', gid int unsigned NOT NULL default '0', oldgroup int unsigned NOT NULL default '0',
|
| oldadditionalgroups text NOT NULL, olddisplaygroup int NOT NULL default '0',
|
admin int unsigned NOT NULL default '0', dateline bigint(30) NOT NULL default '0', bantime varchar(50) NOT NULL default '', lifted bigint(30) NOT NULL default '0',
|
admin int unsigned NOT NULL default '0', dateline bigint(30) NOT NULL default '0', bantime varchar(50) NOT NULL default '', lifted bigint(30) NOT NULL default '0',
|
reason varchar(255) NOT NULL default '' ) TYPE=MyISAM;";
| reason varchar(255) NOT NULL default '', KEY uid (uid), KEY dateline (dateline) ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_captcha ( imagehash varchar(32) NOT NULL default '', imagestring varchar(8) NOT NULL default '',
|
$tables[] = "CREATE TABLE mybb_captcha ( imagehash varchar(32) NOT NULL default '', imagestring varchar(8) NOT NULL default '',
|
dateline bigint(30) NOT NULL default '0' ) TYPE=MyISAM;";
| dateline bigint(30) NOT NULL default '0', KEY imagehash (imagehash), KEY dateline (dateline) ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_datacache ( title varchar(50) NOT NULL default '',
|
$tables[] = "CREATE TABLE mybb_datacache ( title varchar(50) NOT NULL default '',
|
cache mediumtext NOT NULL default '',
| cache mediumtext NOT NULL,
|
PRIMARY KEY(title)
|
PRIMARY KEY(title)
|
) TYPE=MyISAM;";
| ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_events ( eid int unsigned NOT NULL auto_increment, subject varchar(120) NOT NULL default '', author int unsigned NOT NULL default '0', date varchar(50) NOT NULL default '',
|
$tables[] = "CREATE TABLE mybb_events ( eid int unsigned NOT NULL auto_increment, subject varchar(120) NOT NULL default '', author int unsigned NOT NULL default '0', date varchar(50) NOT NULL default '',
|
description text NOT NULL default '',
| description text NOT NULL,
|
private char(3) NOT NULL default '',
|
private char(3) NOT NULL default '',
|
| KEY private (private),
|
PRIMARY KEY (eid)
|
PRIMARY KEY (eid)
|
) TYPE=MyISAM;";
| ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_favorites ( fid int unsigned NOT NULL auto_increment, uid int unsigned NOT NULL default '0', tid int unsigned NOT NULL default '0', type char(1) NOT NULL default '',
|
$tables[] = "CREATE TABLE mybb_favorites ( fid int unsigned NOT NULL auto_increment, uid int unsigned NOT NULL default '0', tid int unsigned NOT NULL default '0', type char(1) NOT NULL default '',
|
| KEY uid (uid), KEY tid (tid,type),
|
PRIMARY KEY (fid)
|
PRIMARY KEY (fid)
|
) TYPE=MyISAM;";
| ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_forumpermissions ( pid int unsigned NOT NULL auto_increment,
| $tables[] = "CREATE TABLE mybb_forumpermissions ( pid int unsigned NOT NULL auto_increment,
|
Zeile 174 | Zeile 188 |
---|
canvotepolls char(3) NOT NULL default '', cansearch char(3) NOT NULL default '', PRIMARY KEY (pid)
|
canvotepolls char(3) NOT NULL default '', cansearch char(3) NOT NULL default '', PRIMARY KEY (pid)
|
) TYPE=MyISAM;";
| ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_forums ( fid smallint unsigned NOT NULL auto_increment, name varchar(120) NOT NULL default '',
|
$tables[] = "CREATE TABLE mybb_forums ( fid smallint unsigned NOT NULL auto_increment, name varchar(120) NOT NULL default '',
|
description text NOT NULL default '',
| description text NOT NULL,
|
linkto varchar(180) NOT NULL default '', type char(1) NOT NULL default '', pid smallint unsigned NOT NULL default '0',
|
linkto varchar(180) NOT NULL default '', type char(1) NOT NULL default '', pid smallint unsigned NOT NULL default '0',
|
parentlist text NOT NULL default '',
| parentlist text NOT NULL,
|
disporder smallint unsigned NOT NULL default '0', active char(3) NOT NULL default '', open char(3) NOT NULL default '',
| disporder smallint unsigned NOT NULL default '0', active char(3) NOT NULL default '', open char(3) NOT NULL default '',
|
Zeile 211 | Zeile 225 |
---|
overridestyle char(3) NOT NULL default '', rulestype smallint(1) NOT NULL default '0', rulestitle varchar(200) NOT NULL default '',
|
overridestyle char(3) NOT NULL default '', rulestype smallint(1) NOT NULL default '0', rulestitle varchar(200) NOT NULL default '',
|
rules text NOT NULL default '',
| rules text NOT NULL,
|
unapprovedthreads int(10) unsigned NOT NULL default '0', unapprovedposts int(10) unsigned NOT NULL default '0', defaultdatecut smallint(4) unsigned NOT NULL default '0', defaultsortby varchar(10) NOT NULL default '', defaultsortorder varchar(4) NOT NULL default '', PRIMARY KEY (fid)
|
unapprovedthreads int(10) unsigned NOT NULL default '0', unapprovedposts int(10) unsigned NOT NULL default '0', defaultdatecut smallint(4) unsigned NOT NULL default '0', defaultsortby varchar(10) NOT NULL default '', defaultsortorder varchar(4) NOT NULL default '', PRIMARY KEY (fid)
|
) TYPE=MyISAM;";
| ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_forumsubscriptions ( fsid int unsigned NOT NULL auto_increment, fid smallint unsigned NOT NULL default '0', uid int unsigned NOT NULL default '0', PRIMARY KEY (fsid)
|
$tables[] = "CREATE TABLE mybb_forumsubscriptions ( fsid int unsigned NOT NULL auto_increment, fid smallint unsigned NOT NULL default '0', uid int unsigned NOT NULL default '0', PRIMARY KEY (fsid)
|
) TYPE=MyISAM;";
| ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_groupleaders ( lid smallint unsigned NOT NULL auto_increment,
| $tables[] = "CREATE TABLE mybb_groupleaders ( lid smallint unsigned NOT NULL auto_increment,
|
Zeile 234 | Zeile 248 |
---|
canmanagemembers char(3) NOT NULL default '', canmanagerequests char(3) NOT NULL default '', PRIMARY KEY (lid)
|
canmanagemembers char(3) NOT NULL default '', canmanagerequests char(3) NOT NULL default '', PRIMARY KEY (lid)
|
) TYPE=MyISAM;";
| ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_helpdocs ( hid smallint unsigned NOT NULL auto_increment, sid smallint unsigned NOT NULL default '0', name varchar(120) NOT NULL default '',
|
$tables[] = "CREATE TABLE mybb_helpdocs ( hid smallint unsigned NOT NULL auto_increment, sid smallint unsigned NOT NULL default '0', name varchar(120) NOT NULL default '',
|
description text NOT NULL default '', document text NOT NULL default '',
| description text NOT NULL, document text NOT NULL,
|
usetranslation char(3) NOT NULL default '', enabled char(3) NOT NULL default '', disporder smallint unsigned NOT NULL default '0', PRIMARY KEY (hid)
|
usetranslation char(3) NOT NULL default '', enabled char(3) NOT NULL default '', disporder smallint unsigned NOT NULL default '0', PRIMARY KEY (hid)
|
) TYPE=MyISAM;";
| ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_helpsections ( sid smallint unsigned NOT NULL auto_increment, name varchar(120) NOT NULL default '',
|
$tables[] = "CREATE TABLE mybb_helpsections ( sid smallint unsigned NOT NULL auto_increment, name varchar(120) NOT NULL default '',
|
description text NOT NULL default '',
| description text NOT NULL,
|
usetranslation char(3) NOT NULL default '', enabled char(3) NOT NULL default '', disporder smallint unsigned NOT NULL default '0', PRIMARY KEY (sid)
|
usetranslation char(3) NOT NULL default '', enabled char(3) NOT NULL default '', disporder smallint unsigned NOT NULL default '0', PRIMARY KEY (sid)
|
) TYPE=MyISAM;";
| ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_icons (
|
$tables[] = "CREATE TABLE mybb_icons (
|
Zeile 265 | Zeile 279 |
---|
name varchar(120) NOT NULL default '', path varchar(220) NOT NULL default '', PRIMARY KEY (iid)
|
name varchar(120) NOT NULL default '', path varchar(220) NOT NULL default '', PRIMARY KEY (iid)
|
) TYPE=MyISAM;";
| ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_joinrequests (
|
$tables[] = "CREATE TABLE mybb_joinrequests (
|
Zeile 275 | Zeile 289 |
---|
reason varchar(250) NOT NULL default '', dateline bigint(30) NOT NULL default '0', PRIMARY KEY (rid)
|
reason varchar(250) NOT NULL default '', dateline bigint(30) NOT NULL default '0', PRIMARY KEY (rid)
|
) TYPE=MyISAM;";
| ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_mailqueue ( mid int unsigned NOT NULL auto_increment,
| $tables[] = "CREATE TABLE mybb_mailqueue ( mid int unsigned NOT NULL auto_increment,
|
Zeile 285 | Zeile 299 |
---|
message text NOT NULL, headers text NOT NULL, PRIMARY KEY(mid)
|
message text NOT NULL, headers text NOT NULL, PRIMARY KEY(mid)
|
);";
| ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_moderatorlog ( uid int unsigned NOT NULL default '0',
| $tables[] = "CREATE TABLE mybb_moderatorlog ( uid int unsigned NOT NULL default '0',
|
Zeile 293 | Zeile 307 |
---|
fid smallint unsigned NOT NULL default '0', tid int unsigned NOT NULL default '0', pid int unsigned NOT NULL default '0',
|
fid smallint unsigned NOT NULL default '0', tid int unsigned NOT NULL default '0', pid int unsigned NOT NULL default '0',
|
action text NOT NULL default '', data text NOT NULL default '', ipaddress varchar(50) NOT NULL default '' ) TYPE=MyISAM;";
| action text NOT NULL, data text NOT NULL, ipaddress varchar(50) NOT NULL default '', KEY tid (tid) ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_moderators ( mid smallint unsigned NOT NULL auto_increment,
| $tables[] = "CREATE TABLE mybb_moderators ( mid smallint unsigned NOT NULL auto_increment,
|
Zeile 308 | Zeile 323 |
---|
canopenclosethreads char(3) NOT NULL default '', canmanagethreads char(3) NOT NULL default '', canmovetononmodforum char(3) NOT NULL default '',
|
canopenclosethreads char(3) NOT NULL default '', canmanagethreads char(3) NOT NULL default '', canmovetononmodforum char(3) NOT NULL default '',
|
| KEY uid (uid, fid),
|
PRIMARY KEY (mid)
|
PRIMARY KEY (mid)
|
) TYPE=MyISAM;";
| ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_modtools ( tid smallint unsigned NOT NULL auto_increment,
| $tables[] = "CREATE TABLE mybb_modtools ( tid smallint unsigned NOT NULL auto_increment,
|
Zeile 320 | Zeile 336 |
---|
postoptions text NOT NULL, threadoptions text NOT NULL, PRIMARY KEY (tid)
|
postoptions text NOT NULL, threadoptions text NOT NULL, PRIMARY KEY (tid)
|
) TYPE=MyISAM;";
| ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_mycode ( cid int unsigned NOT NULL auto_increment, title varchar(100) NOT NULL default '',
|
$tables[] = "CREATE TABLE mybb_mycode ( cid int unsigned NOT NULL auto_increment, title varchar(100) NOT NULL default '',
|
description text NOT NULL default '', regex text NOT NULL default '', replacement text NOT NULL default '',
| description text NOT NULL, regex text NOT NULL, replacement text NOT NULL,
|
active char(3) NOT NULL default '', PRIMARY KEY(cid)
|
active char(3) NOT NULL default '', PRIMARY KEY(cid)
|
) TYPE=MyISAM;";
| ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_polls ( pid int unsigned NOT NULL auto_increment, tid int unsigned NOT NULL default '0', question varchar(200) NOT NULL default '', dateline bigint(30) NOT NULL default '0',
|
$tables[] = "CREATE TABLE mybb_polls ( pid int unsigned NOT NULL auto_increment, tid int unsigned NOT NULL default '0', question varchar(200) NOT NULL default '', dateline bigint(30) NOT NULL default '0',
|
options text NOT NULL default '', votes text NOT NULL default '',
| options text NOT NULL, votes text NOT NULL,
|
numoptions smallint unsigned NOT NULL default '0', numvotes smallint unsigned NOT NULL default '0', timeout bigint(30) NOT NULL default '0',
| numoptions smallint unsigned NOT NULL default '0', numvotes smallint unsigned NOT NULL default '0', timeout bigint(30) NOT NULL default '0',
|
Zeile 346 | Zeile 362 |
---|
multiple char(3) NOT NULL default '', public char(3) NOT NULL default '', PRIMARY KEY (pid)
|
multiple char(3) NOT NULL default '', public char(3) NOT NULL default '', PRIMARY KEY (pid)
|
) TYPE=MyISAM;";
| ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_pollvotes ( vid int unsigned NOT NULL auto_increment,
| $tables[] = "CREATE TABLE mybb_pollvotes ( vid int unsigned NOT NULL auto_increment,
|
Zeile 354 | Zeile 370 |
---|
uid int unsigned NOT NULL default '0', voteoption smallint unsigned NOT NULL default '0', dateline bigint(30) NOT NULL default '0',
|
uid int unsigned NOT NULL default '0', voteoption smallint unsigned NOT NULL default '0', dateline bigint(30) NOT NULL default '0',
|
| KEY pid (pid, uid),
|
PRIMARY KEY (vid)
|
PRIMARY KEY (vid)
|
) TYPE=MyISAM;";
| ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_posts ( pid int unsigned NOT NULL auto_increment,
| $tables[] = "CREATE TABLE mybb_posts ( pid int unsigned NOT NULL auto_increment,
|
Zeile 367 | Zeile 384 |
---|
uid int unsigned NOT NULL default '0', username varchar(80) NOT NULL default '', dateline bigint(30) NOT NULL default '0',
|
uid int unsigned NOT NULL default '0', username varchar(80) NOT NULL default '', dateline bigint(30) NOT NULL default '0',
|
message text NOT NULL default '',
| message text NOT NULL,
|
ipaddress varchar(30) NOT NULL default '', includesig char(3) NOT NULL default '', smilieoff char(3) NOT NULL default '',
| ipaddress varchar(30) NOT NULL default '', includesig char(3) NOT NULL default '', smilieoff char(3) NOT NULL default '',
|
Zeile 375 | Zeile 392 |
---|
edittime int(10) NOT NULL default '0', visible int(1) NOT NULL default '0', posthash varchar(32) NOT NULL default '',
|
edittime int(10) NOT NULL default '0', visible int(1) NOT NULL default '0', posthash varchar(32) NOT NULL default '',
|
| KEY tid (tid, uid), KEY uid (uid), KEY dateline (dateline),
|
PRIMARY KEY (pid)
|
PRIMARY KEY (pid)
|
) TYPE=MyISAM;";
| ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_privatemessages (
|
$tables[] = "CREATE TABLE mybb_privatemessages (
|
Zeile 387 | Zeile 407 |
---|
folder smallint unsigned NOT NULL default '1', subject varchar(120) NOT NULL default '', icon smallint unsigned NOT NULL default '0',
|
folder smallint unsigned NOT NULL default '1', subject varchar(120) NOT NULL default '', icon smallint unsigned NOT NULL default '0',
|
message text NOT NULL default '',
| message text NOT NULL,
|
dateline bigint(30) NOT NULL default '0', status int(1) NOT NULL default '0', includesig char(3) NOT NULL default '', smilieoff char(3) NOT NULL default '', receipt int(1) NOT NULL default '0', readtime bigint(30) NOT NULL default '0',
|
dateline bigint(30) NOT NULL default '0', status int(1) NOT NULL default '0', includesig char(3) NOT NULL default '', smilieoff char(3) NOT NULL default '', receipt int(1) NOT NULL default '0', readtime bigint(30) NOT NULL default '0',
|
| KEY uid (uid, folder),
|
PRIMARY KEY (pmid)
|
PRIMARY KEY (pmid)
|
) TYPE=MyISAM;";
| ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_profilefields ( fid smallint unsigned NOT NULL auto_increment, name varchar(100) NOT NULL default '',
|
$tables[] = "CREATE TABLE mybb_profilefields ( fid smallint unsigned NOT NULL auto_increment, name varchar(100) NOT NULL default '',
|
description text NOT NULL default '',
| description text NOT NULL,
|
disporder smallint unsigned NOT NULL default '0',
|
disporder smallint unsigned NOT NULL default '0',
|
type text NOT NULL default '',
| type text NOT NULL,
|
length smallint unsigned NOT NULL default '0', maxlength smallint unsigned NOT NULL default '0', required char(3) NOT NULL default '', editable char(3) NOT NULL default '', hidden char(3) NOT NULL default '', PRIMARY KEY (fid)
|
length smallint unsigned NOT NULL default '0', maxlength smallint unsigned NOT NULL default '0', required char(3) NOT NULL default '', editable char(3) NOT NULL default '', hidden char(3) NOT NULL default '', PRIMARY KEY (fid)
|
) TYPE=MyISAM;";
| ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_reportedposts (
|
$tables[] = "CREATE TABLE mybb_reportedposts (
|
Zeile 422 | Zeile 443 |
---|
reportstatus int(1) NOT NULL default '0', reason varchar(250) NOT NULL default '', dateline bigint(30) NOT NULL default '0',
|
reportstatus int(1) NOT NULL default '0', reason varchar(250) NOT NULL default '', dateline bigint(30) NOT NULL default '0',
|
| KEY fid (fid), KEY dateline (dateline),
|
PRIMARY KEY (rid)
|
PRIMARY KEY (rid)
|
) TYPE=MyISAM;";
| ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_reputation ( rid int unsigned NOT NULL auto_increment,
| $tables[] = "CREATE TABLE mybb_reputation ( rid int unsigned NOT NULL auto_increment,
|
Zeile 432 | Zeile 455 |
---|
reputation bigint(30) NOT NULL default '0', dateline bigint(30) NOT NULL default '0', comments text NOT NULL,
|
reputation bigint(30) NOT NULL default '0', dateline bigint(30) NOT NULL default '0', comments text NOT NULL,
|
| KEY uid (uid), KEY dateline (dateline),
|
PRIMARY KEY(rid)
|
PRIMARY KEY(rid)
|
) TYPE=MyISAM;";
| ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_searchlog ( sid varchar(32) NOT NULL default '', uid int unsigned NOT NULL default '0', dateline bigint(30) NOT NULL default '0', ipaddress varchar(120) NOT NULL default '',
|
$tables[] = "CREATE TABLE mybb_searchlog ( sid varchar(32) NOT NULL default '', uid int unsigned NOT NULL default '0', dateline bigint(30) NOT NULL default '0', ipaddress varchar(120) NOT NULL default '',
|
threads text NOT NULL default '', posts text NOT NULL default '',
| threads text NOT NULL, posts text NOT NULL,
|
searchtype varchar(10) NOT NULL default '', resulttype varchar(10) NOT NULL default '',
|
searchtype varchar(10) NOT NULL default '', resulttype varchar(10) NOT NULL default '',
|
querycache text NOT NULL default '',
| querycache text NOT NULL,
|
PRIMARY KEY (sid)
|
PRIMARY KEY (sid)
|
) TYPE=MyISAM;";
| ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_sessions ( sid varchar(32) NOT NULL default '',
| $tables[] = "CREATE TABLE mybb_sessions ( sid varchar(32) NOT NULL default '',
|
Zeile 463 | Zeile 488 |
---|
failedlogin bigint(30) NOT NULL default '0', PRIMARY KEY(sid), KEY location1 (location1),
|
failedlogin bigint(30) NOT NULL default '0', PRIMARY KEY(sid), KEY location1 (location1),
|
KEY location2 (location2) ) TYPE=MyISAM;";
| KEY location2 (location2), KEY time (time), KEY uid (uid) ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_settinggroups ( gid smallint unsigned NOT NULL auto_increment, name varchar(100) NOT NULL default '', title varchar(220) NOT NULL default '',
|
$tables[] = "CREATE TABLE mybb_settinggroups ( gid smallint unsigned NOT NULL auto_increment, name varchar(100) NOT NULL default '', title varchar(220) NOT NULL default '',
|
description text NOT NULL default '',
| description text NOT NULL,
|
disporder smallint unsigned NOT NULL default '0', isdefault char(3) NOT NULL default '', PRIMARY KEY (gid)
|
disporder smallint unsigned NOT NULL default '0', isdefault char(3) NOT NULL default '', PRIMARY KEY (gid)
|
) TYPE=MyISAM;";
| ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_settings ( sid smallint unsigned NOT NULL auto_increment, name varchar(120) NOT NULL default '', title varchar(120) NOT NULL default '',
|
$tables[] = "CREATE TABLE mybb_settings ( sid smallint unsigned NOT NULL auto_increment, name varchar(120) NOT NULL default '', title varchar(120) NOT NULL default '',
|
description text NOT NULL default '', optionscode text NOT NULL default '', value text NOT NULL default '',
| description text NOT NULL, optionscode text NOT NULL, value text NOT NULL,
|
disporder smallint unsigned NOT NULL default '0', gid smallint unsigned NOT NULL default '0', PRIMARY KEY (sid)
|
disporder smallint unsigned NOT NULL default '0', gid smallint unsigned NOT NULL default '0', PRIMARY KEY (sid)
|
) TYPE=MyISAM;";
| ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_smilies (
|
$tables[] = "CREATE TABLE mybb_smilies (
|
Zeile 498 | Zeile 525 |
---|
disporder smallint unsigned NOT NULL default '0', showclickable char(3) NOT NULL default '', PRIMARY KEY (sid)
|
disporder smallint unsigned NOT NULL default '0', showclickable char(3) NOT NULL default '', PRIMARY KEY (sid)
|
) TYPE=MyISAM;";
| ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_templategroups ( gid int unsigned NOT NULL auto_increment, prefix varchar(50) NOT NULL default '', title varchar(100) NOT NULL default '', PRIMARY KEY (gid)
|
$tables[] = "CREATE TABLE mybb_templategroups ( gid int unsigned NOT NULL auto_increment, prefix varchar(50) NOT NULL default '', title varchar(100) NOT NULL default '', PRIMARY KEY (gid)
|
) TYPE=MyISAM;";
| ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_templates ( tid int unsigned NOT NULL auto_increment, title varchar(120) NOT NULL default '', template text NOT NULL, sid int(10) NOT NULL default '0',
|
$tables[] = "CREATE TABLE mybb_templates ( tid int unsigned NOT NULL auto_increment, title varchar(120) NOT NULL default '', template text NOT NULL, sid int(10) NOT NULL default '0',
|
version varchar(20) NOT NULL default '0',
| version int unsigned NOT NULL default '0',
|
status varchar(10) NOT NULL default '', dateline int(10) NOT NULL default '0', PRIMARY KEY (tid)
|
status varchar(10) NOT NULL default '', dateline int(10) NOT NULL default '0', PRIMARY KEY (tid)
|
) TYPE=MyISAM;";
| ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_templatesets ( sid smallint unsigned NOT NULL auto_increment, title varchar(120) NOT NULL default '', PRIMARY KEY (sid)
|
$tables[] = "CREATE TABLE mybb_templatesets ( sid smallint unsigned NOT NULL auto_increment, title varchar(120) NOT NULL default '', PRIMARY KEY (sid)
|
) TYPE=MyISAM;";
| ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_themes (
|
$tables[] = "CREATE TABLE mybb_themes (
|
Zeile 530 | Zeile 557 |
---|
name varchar(100) NOT NULL default '', pid smallint unsigned NOT NULL default '0', def smallint(1) NOT NULL default '0',
|
name varchar(100) NOT NULL default '', pid smallint unsigned NOT NULL default '0', def smallint(1) NOT NULL default '0',
|
css text NOT NULL default '', cssbits text NOT NULL default '', themebits text NOT NULL default '', extracss text NOT NULL default '', allowedgroups text NOT NULL default '',
| css text NOT NULL, cssbits text NOT NULL, themebits text NOT NULL, extracss text NOT NULL, allowedgroups text NOT NULL,
|
csscached bigint(30) NOT NULL default '0', PRIMARY KEY (tid)
|
csscached bigint(30) NOT NULL default '0', PRIMARY KEY (tid)
|
) TYPE=MyISAM;";
| ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_threadratings ( rid int unsigned NOT NULL auto_increment,
| $tables[] = "CREATE TABLE mybb_threadratings ( rid int unsigned NOT NULL auto_increment,
|
Zeile 545 | Zeile 572 |
---|
uid int unsigned NOT NULL default '0', rating smallint unsigned NOT NULL default '0', ipaddress varchar(30) NOT NULL default '',
|
uid int unsigned NOT NULL default '0', rating smallint unsigned NOT NULL default '0', ipaddress varchar(30) NOT NULL default '',
|
| KEY tid (tid, uid),
|
PRIMARY KEY (rid)
|
PRIMARY KEY (rid)
|
) TYPE=MyISAM;";
| ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_threads (
|
$tables[] = "CREATE TABLE mybb_threads (
|
Zeile 568 | Zeile 596 |
---|
sticky int(1) NOT NULL default '0', numratings smallint unsigned NOT NULL default '0', totalratings smallint unsigned NOT NULL default '0',
|
sticky int(1) NOT NULL default '0', numratings smallint unsigned NOT NULL default '0', totalratings smallint unsigned NOT NULL default '0',
|
notes text NOT NULL default '',
| notes text NOT NULL,
|
visible int(1) NOT NULL default '0', unapprovedposts int(10) unsigned NOT NULL default '0', attachmentcount int(10) unsigned NOT NULL default '0', deletetime int(10) unsigned NOT NULL default '0',
|
visible int(1) NOT NULL default '0', unapprovedposts int(10) unsigned NOT NULL default '0', attachmentcount int(10) unsigned NOT NULL default '0', deletetime int(10) unsigned NOT NULL default '0',
|
| KEY fid (fid, visible, sticky), KEY dateline (dateline), KEY lastpost (lastpost, fid), KEY firstpost (firstpost), KEY uid (uid),
|
PRIMARY KEY (tid)
|
PRIMARY KEY (tid)
|
) TYPE=MyISAM;";
| ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_threadsread ( tid int unsigned NOT NULL default '0', uid int unsigned NOT NULL default '0', dateline int(10) NOT NULL default '0',
|
$tables[] = "CREATE TABLE mybb_threadsread ( tid int unsigned NOT NULL default '0', uid int unsigned NOT NULL default '0', dateline int(10) NOT NULL default '0',
|
| KEY dateline (dateline),
|
UNIQUE KEY tiduid (tid,uid)
|
UNIQUE KEY tiduid (tid,uid)
|
) TYPE=MyISAM;";
| ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_userfields ( ufid int unsigned NOT NULL default '0',
|
$tables[] = "CREATE TABLE mybb_userfields ( ufid int unsigned NOT NULL default '0',
|
fid1 text NOT NULL default '', fid2 text NOT NULL default '', fid3 text NOT NULL default '',
| fid1 text NOT NULL, fid2 text NOT NULL, fid3 text NOT NULL,
|
PRIMARY KEY (ufid)
|
PRIMARY KEY (ufid)
|
) TYPE=MyISAM;";
| ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_usergroups ( gid smallint unsigned NOT NULL auto_increment, type smallint(2) NOT NULL default '2', title varchar(120) NOT NULL default '',
|
$tables[] = "CREATE TABLE mybb_usergroups ( gid smallint unsigned NOT NULL auto_increment, type smallint(2) NOT NULL default '2', title varchar(120) NOT NULL default '',
|
description text NOT NULL default '',
| description text NOT NULL,
|
namestyle varchar(200) NOT NULL default '{username}', usertitle varchar(120) NOT NULL default '', stars smallint(4) NOT NULL default '0',
| namestyle varchar(200) NOT NULL default '{username}', usertitle varchar(120) NOT NULL default '', stars smallint(4) NOT NULL default '0',
|
Zeile 646 | Zeile 680 |
---|
attachquota bigint(30) NOT NULL default '0', cancustomtitle char(3) NOT NULL default '', PRIMARY KEY (gid)
|
attachquota bigint(30) NOT NULL default '0', cancustomtitle char(3) NOT NULL default '', PRIMARY KEY (gid)
|
) TYPE=MyISAM;";
| ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_users (
|
$tables[] = "CREATE TABLE mybb_users (
|
Zeile 674 | Zeile 708 |
---|
yahoo varchar(50) NOT NULL default '', msn varchar(75) NOT NULL default '', birthday varchar(15) NOT NULL default '',
|
yahoo varchar(50) NOT NULL default '', msn varchar(75) NOT NULL default '', birthday varchar(15) NOT NULL default '',
|
signature text NOT NULL default '',
| signature text NOT NULL,
|
allownotices char(3) NOT NULL default '', hideemail char(3) NOT NULL default '', emailnotify char(3) NOT NULL default '',
| allownotices char(3) NOT NULL default '', hideemail char(3) NOT NULL default '', emailnotify char(3) NOT NULL default '',
|
Zeile 695 | Zeile 729 |
---|
timeformat varchar(4) NOT NULL default '', timezone varchar(4) NOT NULL default '', dst varchar(4) NOT NULL default '',
|
timeformat varchar(4) NOT NULL default '', timezone varchar(4) NOT NULL default '', dst varchar(4) NOT NULL default '',
|
buddylist text NOT NULL default '', ignorelist text NOT NULL default '',
| buddylist text NOT NULL, ignorelist text NOT NULL,
|
style smallint unsigned NOT NULL default '0', away char(3) NOT NULL default '', awaydate int(10) unsigned NOT NULL default '0', returndate varchar(15) NOT NULL default '', awayreason varchar(200) NOT NULL default '',
|
style smallint unsigned NOT NULL default '0', away char(3) NOT NULL default '', awaydate int(10) unsigned NOT NULL default '0', returndate varchar(15) NOT NULL default '', awayreason varchar(200) NOT NULL default '',
|
pmfolders text NOT NULL default '', notepad text NOT NULL default '',
| pmfolders text NOT NULL, notepad text NOT NULL,
|
referrer int unsigned NOT NULL default '0', reputation bigint(30) NOT NULL default '0', regip varchar(50) NOT NULL default '',
| referrer int unsigned NOT NULL default '0', reputation bigint(30) NOT NULL default '0', regip varchar(50) NOT NULL default '',
|
Zeile 713 | Zeile 747 |
---|
totalpms int(10) NOT NULL default '0', newpms int(10) NOT NULL default '0', unreadpms int(10) NOT NULL default '0',
|
totalpms int(10) NOT NULL default '0', newpms int(10) NOT NULL default '0', unreadpms int(10) NOT NULL default '0',
|
| KEY username (username), KEY usergroup (usergroup), KEY birthday (birthday),
|
PRIMARY KEY (uid)
|
PRIMARY KEY (uid)
|
) TYPE=MyISAM;";
| ) TYPE=MyISAM{$charset};";
|
$tables[] = "CREATE TABLE mybb_usertitles (
|
$tables[] = "CREATE TABLE mybb_usertitles (
|
Zeile 724 | Zeile 761 |
---|
stars smallint(4) NOT NULL default '0', starimage varchar(120) NOT NULL default '', PRIMARY KEY (utid)
|
stars smallint(4) NOT NULL default '0', starimage varchar(120) NOT NULL default '', PRIMARY KEY (utid)
|
) TYPE=MyISAM;";
| ) TYPE=MyISAM{$charset};";
|
?>
| ?>
|