Commit 94c9df7e authored by Kasper Skårhøj's avatar Kasper Skårhøj
Browse files

Removed unsigned attributes from .sql files in the core, plus added features...

Removed unsigned attributes from .sql files in the core, plus added features to the install tool. Please check changelog for more info.


git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@607 709f56b5-9817-0410-a4d7-c38de5d9e867
parent 5112b6c9
2005-04-06 Kasper Skårhøj,,, <kasper@typo3.com>
* Removed all "unsigned" attributes from .sql files in the core and implemented a complete list of those fields for which it has been removed in the t3lib_install class. By default the install tool will NOT detect that these fields should be changed to signed integers since if the field is found in the list in the install class this difference will be ignored. The reason is that it will be 200+ ALTER TABLe changes and the significance is mostly cosmetic. However if somebody wants to actually do the conversion they can switch an internal variable in the t3lib_install class to TRUE and the install tool WILL convert...
2005-04-06 Kasper Skårhøj,,, <kasper@typo3.com>
* Extended a comment of a function in t3lib_extMgm
......
......@@ -103,6 +103,42 @@ class t3lib_install {
var $changedUnsignedFields = FALSE; // Switch this to TRUE if you wish the install tool to convert all unsigned fields (for 3.8.0 core) to signed integers (unsigned is depricated due to DBAL but doesn't hurt - usually...). It might be a good idea to flush cache-tables first including the tables from indexed search (which has to be re-build thereafter)
var $coreFieldsWithUnsignedKeywordRemovedIn380 = array(
'be_groups' => 'uid,pid,tstamp,crdate,cruser_id,hidden,inc_access_lists,deleted',
'be_sessions' => 'ses_userid,ses_tstamp',
'be_users' => 'uid,pid,tstamp,admin,disable,starttime,endtime,options,crdate,cruser_id,disableIPlock,deleted,lastlogin',
'cache_hash' => 'tstamp',
'cache_imagesizes' => 'imagewidth,imageheight',
'pages' => 't3ver_oid,t3ver_id,tstamp,sorting,deleted,perms_userid,perms_groupid,perms_user,perms_group,perms_everybody,editlock,crdate,cruser_id,doktype,hidden,starttime,endtime,urltype,shortcut,shortcut_mode,no_cache,layout,lastUpdated,cache_timeout,newUntil,no_search,SYS_LASTCHANGED,extendToSubpages,content_from_pid,mount_pid',
'sys_be_shortcuts' => 'uid,userid',
'sys_filemounts' => 'uid,pid,tstamp,base,hidden,deleted',
'sys_history' => 'uid',
'sys_lockedrecords' => 'uid,userid,tstamp',
'sys_log' => 'uid,userid,action,recuid,error,tstamp,type,details_nr',
'sys_language' => 'uid,pid,tstamp,hidden,static_lang_isocode',
'cache_pages' => 'id,page_id,reg1,tstamp,expires',
'cache_pagesection' => 'page_id,mpvar_hash,tstamp',
'cache_imagesizes' => 'imagewidth,imageheight',
'fe_groups' => 'uid,pid,tstamp,hidden,deleted',
'fe_session_data' => 'tstamp',
'fe_sessions' => 'ses_userid,ses_tstamp',
'fe_users' => 'uid,pid,tstamp,disable,starttime,endtime,crdate,cruser_id,deleted,module_sys_dmail_category,module_sys_dmail_html,fe_cruser_id,lastlogin,is_online',
'pages_language_overlay' => 't3ver_oid,t3ver_id,tstamp,crdate,cruser_id,sys_language_uid,hidden,starttime,endtime',
'static_template' => 'uid,pid,tstamp,crdate',
'sys_domain' => 'uid,pid,tstamp,hidden,sorting',
'sys_template' => 't3ver_oid,t3ver_id,tstamp,sorting,crdate,cruser_id,hidden,starttime,endtime,root,clear,deleted,includeStaticAfterBasedOn,static_file_mode',
'tt_content' => 't3ver_oid,t3ver_id,tstamp,hidden,sorting,imagewidth,imageorient,imagecols,imageborder,layout,deleted,cols,starttime,endtime,colPos,spaceBefore,spaceAfter,image_zoom,image_noRows,image_effects,image_compression,text_face,text_size,text_color,text_properties,table_border,table_cellspacing,table_cellpadding,table_bgColor,select_key,sectionIndex,linkToTop,filelink_size,section_frame,date,image_frames,recursive,imageheight,module_sys_dmail_category',
'sys_note' => 'uid,pid,deleted,tstamp,crdate,cruser,personal,category',
'sys_action' => 'uid,pid,tstamp,crdate,cruser_id,type',
'sys_action_asgr_mm' => 'uid_local,uid_foreign,sorting',
'index_phash' => 'data_page_id,data_page_reg1,data_page_type,tstamp',
'index_rel' => 'count,first,freq,flags',
'index_section' => 'rl0,rl1,rl2',
'index_stat_search' => 'feuser_id',
'index_config' => 'tstamp,crdate,cruser_id,hidden,starttime,type,depth,chashcalc',
);
/**
* Constructor function
......@@ -113,6 +149,12 @@ class t3lib_install {
if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['multiplyDBfieldSize']>= 1 && $GLOBALS['TYPO3_CONF_VARS']['SYS']['multiplyDBfieldSize']<=5) {
$this->multiplySize = (double)$GLOBALS['TYPO3_CONF_VARS']['SYS']['multiplyDBfieldSize'];
}
// Init this array:
foreach($this->coreFieldsWithUnsignedKeywordRemovedIn380 as $table => $fieldNameList) {
$this->coreFieldsWithUnsignedKeywordRemovedIn380[$table] = array_flip(t3lib_div::trimExplode(',',$fieldNameList,1));
}
}
......@@ -423,6 +465,14 @@ class t3lib_install {
foreach($keyTypes as $theKey) {
if (is_array($info[$theKey])) {
foreach($info[$theKey] as $fieldN => $fieldC) {
if (!$this->changedUnsignedFields && isset($this->coreFieldsWithUnsignedKeywordRemovedIn380[$table][$fieldN])) {
$FDcomp[$table][$theKey][$fieldN] = str_replace(' unsigned','',$FDcomp[$table][$theKey][$fieldN]);
unset($this->coreFieldsWithUnsignedKeywordRemovedIn380[$table][$fieldN]); // Just to verify that all fields are actually found!
}
if (!isset($FDcomp[$table][$theKey][$fieldN])) {
$extraArr[$table][$theKey][$fieldN] = $fieldC;
} elseif (strcmp($FDcomp[$table][$theKey][$fieldN], $fieldC) && strcmp($FDcomp[$table][$theKey][$fieldN], str_replace(' unsigned','',$fieldC))){
......
......@@ -10,9 +10,9 @@
# Table structure for table 'be_groups'
#
CREATE TABLE be_groups (
uid int(11) unsigned DEFAULT '0' NOT NULL auto_increment,
pid int(11) unsigned DEFAULT '0' NOT NULL,
tstamp int(11) unsigned DEFAULT '0' NOT NULL,
uid int(11) DEFAULT '0' NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
tstamp int(11) DEFAULT '0' NOT NULL,
title varchar(20) DEFAULT '' NOT NULL,
non_exclude_fields blob NOT NULL,
explicit_allowdeny blob NOT NULL,
......@@ -22,15 +22,15 @@ CREATE TABLE be_groups (
pagetypes_select tinyblob NOT NULL,
tables_select blob NOT NULL,
tables_modify blob NOT NULL,
crdate int(11) unsigned DEFAULT '0' NOT NULL,
cruser_id int(11) unsigned DEFAULT '0' NOT NULL,
crdate int(11) DEFAULT '0' NOT NULL,
cruser_id int(11) DEFAULT '0' NOT NULL,
groupMods tinyblob NOT NULL,
file_mountpoints varchar(40) DEFAULT '' NOT NULL,
hidden tinyint(3) unsigned DEFAULT '0' NOT NULL,
inc_access_lists tinyint(3) unsigned DEFAULT '0' NOT NULL,
hidden tinyint(3) DEFAULT '0' NOT NULL,
inc_access_lists tinyint(3) DEFAULT '0' NOT NULL,
description text NOT NULL,
lockToDomain varchar(50) DEFAULT '' NOT NULL,
deleted tinyint(3) unsigned DEFAULT '0' NOT NULL,
deleted tinyint(3) DEFAULT '0' NOT NULL,
TSconfig blob NOT NULL,
subgroup tinyblob NOT NULL,
hide_in_lists tinyint(4) DEFAULT '0' NOT NULL,
......@@ -46,8 +46,8 @@ CREATE TABLE be_sessions (
ses_name varchar(32) DEFAULT '' NOT NULL,
ses_iplock varchar(15) DEFAULT '' NOT NULL,
ses_hashlock int(11) DEFAULT '0' NOT NULL,
ses_userid int(11) unsigned DEFAULT '0' NOT NULL,
ses_tstamp int(11) unsigned DEFAULT '0' NOT NULL,
ses_userid int(11) DEFAULT '0' NOT NULL,
ses_tstamp int(11) DEFAULT '0' NOT NULL,
ses_data mediumblob NOT NULL,
PRIMARY KEY (ses_id,ses_name)
);
......@@ -56,22 +56,22 @@ CREATE TABLE be_sessions (
# Table structure for table 'be_users'
#
CREATE TABLE be_users (
uid int(11) unsigned DEFAULT '0' NOT NULL auto_increment,
pid int(11) unsigned DEFAULT '0' NOT NULL,
tstamp int(11) unsigned DEFAULT '0' NOT NULL,
uid int(11) DEFAULT '0' NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
tstamp int(11) DEFAULT '0' NOT NULL,
username varchar(20) DEFAULT '' NOT NULL,
password varchar(40) DEFAULT '' NOT NULL,
admin tinyint(4) unsigned DEFAULT '0' NOT NULL,
admin tinyint(4) DEFAULT '0' NOT NULL,
usergroup tinyblob NOT NULL,
disable tinyint(4) unsigned DEFAULT '0' NOT NULL,
starttime int(11) unsigned DEFAULT '0' NOT NULL,
endtime int(11) unsigned DEFAULT '0' NOT NULL,
disable tinyint(4) DEFAULT '0' NOT NULL,
starttime int(11) DEFAULT '0' NOT NULL,
endtime int(11) DEFAULT '0' NOT NULL,
lang char(2) DEFAULT '' NOT NULL,
email varchar(80) DEFAULT '' NOT NULL,
db_mountpoints varchar(40) DEFAULT '' NOT NULL,
options tinyint(4) unsigned DEFAULT '0' NOT NULL,
crdate int(11) unsigned DEFAULT '0' NOT NULL,
cruser_id int(11) unsigned DEFAULT '0' NOT NULL,
options tinyint(4) DEFAULT '0' NOT NULL,
crdate int(11) DEFAULT '0' NOT NULL,
cruser_id int(11) DEFAULT '0' NOT NULL,
realName varchar(80) DEFAULT '' NOT NULL,
userMods tinyblob NOT NULL,
allowed_languages tinyblob NOT NULL,
......@@ -79,10 +79,10 @@ CREATE TABLE be_users (
file_mountpoints varchar(40) DEFAULT '' NOT NULL,
fileoper_perms tinyint(4) DEFAULT '0' NOT NULL,
lockToDomain varchar(50) DEFAULT '' NOT NULL,
disableIPlock tinyint(3) unsigned DEFAULT '0' NOT NULL,
deleted tinyint(3) unsigned DEFAULT '0' NOT NULL,
disableIPlock tinyint(3) DEFAULT '0' NOT NULL,
deleted tinyint(3) DEFAULT '0' NOT NULL,
TSconfig blob NOT NULL,
lastlogin int(10) unsigned DEFAULT '0' NOT NULL,
lastlogin int(10) DEFAULT '0' NOT NULL,
createdByAction int(11) DEFAULT '0' NOT NULL,
usergroup_cached_list tinytext NOT NULL,
PRIMARY KEY (uid),
......@@ -96,7 +96,7 @@ CREATE TABLE be_users (
CREATE TABLE cache_hash (
hash varchar(32) DEFAULT '' NOT NULL,
content mediumblob NOT NULL,
tstamp int(11) unsigned DEFAULT '0' NOT NULL,
tstamp int(11) DEFAULT '0' NOT NULL,
ident varchar(20) DEFAULT '' NOT NULL,
PRIMARY KEY (hash)
);
......@@ -109,8 +109,8 @@ CREATE TABLE cache_imagesizes (
md5filename varchar(32) DEFAULT '' NOT NULL,
tstamp int(11) DEFAULT '0' NOT NULL,
filename tinytext NOT NULL,
imagewidth mediumint(11) unsigned DEFAULT '0' NOT NULL,
imageheight mediumint(11) unsigned DEFAULT '0' NOT NULL,
imagewidth mediumint(11) DEFAULT '0' NOT NULL,
imageheight mediumint(11) DEFAULT '0' NOT NULL,
PRIMARY KEY (md5filename)
);
......@@ -120,22 +120,22 @@ CREATE TABLE cache_imagesizes (
CREATE TABLE pages (
uid int(11) DEFAULT '0' NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
t3ver_oid int(11) unsigned DEFAULT '0' NOT NULL,
t3ver_id int(11) unsigned DEFAULT '0' NOT NULL,
t3ver_oid int(11) DEFAULT '0' NOT NULL,
t3ver_id int(11) DEFAULT '0' NOT NULL,
t3ver_label varchar(30) DEFAULT '' NOT NULL,
tstamp int(11) unsigned DEFAULT '0' NOT NULL,
sorting int(11) unsigned DEFAULT '0' NOT NULL,
deleted tinyint(4) unsigned DEFAULT '0' NOT NULL,
perms_userid int(11) unsigned DEFAULT '0' NOT NULL,
perms_groupid int(11) unsigned DEFAULT '0' NOT NULL,
perms_user tinyint(4) unsigned DEFAULT '0' NOT NULL,
perms_group tinyint(4) unsigned DEFAULT '0' NOT NULL,
perms_everybody tinyint(4) unsigned DEFAULT '0' NOT NULL,
editlock tinyint(4) unsigned DEFAULT '0' NOT NULL,
crdate int(11) unsigned DEFAULT '0' NOT NULL,
cruser_id int(11) unsigned DEFAULT '0' NOT NULL,
tstamp int(11) DEFAULT '0' NOT NULL,
sorting int(11) DEFAULT '0' NOT NULL,
deleted tinyint(4) DEFAULT '0' NOT NULL,
perms_userid int(11) DEFAULT '0' NOT NULL,
perms_groupid int(11) DEFAULT '0' NOT NULL,
perms_user tinyint(4) DEFAULT '0' NOT NULL,
perms_group tinyint(4) DEFAULT '0' NOT NULL,
perms_everybody tinyint(4) DEFAULT '0' NOT NULL,
editlock tinyint(4) DEFAULT '0' NOT NULL,
crdate int(11) DEFAULT '0' NOT NULL,
cruser_id int(11) DEFAULT '0' NOT NULL,
title tinytext NOT NULL,
doktype tinyint(3) unsigned DEFAULT '0' NOT NULL,
doktype tinyint(3) DEFAULT '0' NOT NULL,
TSconfig blob NOT NULL,
storage_pid int(11) DEFAULT '0' NOT NULL,
is_siteroot tinyint(4) DEFAULT '0' NOT NULL,
......@@ -150,8 +150,8 @@ CREATE TABLE pages (
# Table structure for table 'sys_be_shortcuts'
#
CREATE TABLE sys_be_shortcuts (
uid int(11) unsigned DEFAULT '0' NOT NULL auto_increment,
userid int(11) unsigned DEFAULT '0' NOT NULL,
uid int(11) DEFAULT '0' NOT NULL auto_increment,
userid int(11) DEFAULT '0' NOT NULL,
module_name tinytext NOT NULL,
url text NOT NULL,
description tinytext NOT NULL,
......@@ -165,14 +165,14 @@ CREATE TABLE sys_be_shortcuts (
# Table structure for table 'sys_filemounts'
#
CREATE TABLE sys_filemounts (
uid int(11) unsigned DEFAULT '0' NOT NULL auto_increment,
pid int(11) unsigned DEFAULT '0' NOT NULL,
tstamp int(11) unsigned DEFAULT '0' NOT NULL,
uid int(11) DEFAULT '0' NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
tstamp int(11) DEFAULT '0' NOT NULL,
title varchar(30) DEFAULT '' NOT NULL,
path varchar(120) DEFAULT '' NOT NULL,
base tinyint(4) unsigned DEFAULT '0' NOT NULL,
hidden tinyint(3) unsigned DEFAULT '0' NOT NULL,
deleted tinyint(3) unsigned DEFAULT '0' NOT NULL,
base tinyint(4) DEFAULT '0' NOT NULL,
hidden tinyint(3) DEFAULT '0' NOT NULL,
deleted tinyint(3) DEFAULT '0' NOT NULL,
PRIMARY KEY (uid),
KEY parent (pid)
);
......@@ -181,7 +181,7 @@ CREATE TABLE sys_filemounts (
# Table structure for table 'sys_history'
#
CREATE TABLE sys_history (
uid int(11) unsigned DEFAULT '0' NOT NULL auto_increment,
uid int(11) DEFAULT '0' NOT NULL auto_increment,
sys_log_uid int(11) DEFAULT '0' NOT NULL,
history_data mediumblob NOT NULL,
fieldlist blob NOT NULL,
......@@ -199,9 +199,9 @@ CREATE TABLE sys_history (
# Table structure for table 'sys_lockedrecords'
#
CREATE TABLE sys_lockedrecords (
uid int(11) unsigned DEFAULT '0' NOT NULL auto_increment,
userid int(11) unsigned DEFAULT '0' NOT NULL,
tstamp int(11) unsigned DEFAULT '0' NOT NULL,
uid int(11) DEFAULT '0' NOT NULL auto_increment,
userid int(11) DEFAULT '0' NOT NULL,
tstamp int(11) DEFAULT '0' NOT NULL,
record_table varchar(40) DEFAULT '' NOT NULL,
record_uid int(11) DEFAULT '0' NOT NULL,
record_pid int(11) DEFAULT '0' NOT NULL,
......@@ -214,17 +214,17 @@ CREATE TABLE sys_lockedrecords (
# Table structure for table 'sys_log'
#
CREATE TABLE sys_log (
uid int(11) unsigned DEFAULT '0' NOT NULL auto_increment,
userid int(11) unsigned DEFAULT '0' NOT NULL,
action tinyint(4) unsigned DEFAULT '0' NOT NULL,
recuid int(11) unsigned DEFAULT '0' NOT NULL,
uid int(11) DEFAULT '0' NOT NULL auto_increment,
userid int(11) DEFAULT '0' NOT NULL,
action tinyint(4) DEFAULT '0' NOT NULL,
recuid int(11) DEFAULT '0' NOT NULL,
tablename varchar(40) DEFAULT '' NOT NULL,
recpid int(11) DEFAULT '0' NOT NULL,
error tinyint(4) unsigned DEFAULT '0' NOT NULL,
error tinyint(4) DEFAULT '0' NOT NULL,
details tinytext NOT NULL,
tstamp int(11) unsigned DEFAULT '0' NOT NULL,
type tinyint(3) unsigned DEFAULT '0' NOT NULL,
details_nr tinyint(3) unsigned DEFAULT '0' NOT NULL,
tstamp int(11) DEFAULT '0' NOT NULL,
type tinyint(3) DEFAULT '0' NOT NULL,
details_nr tinyint(3) DEFAULT '0' NOT NULL,
IP varchar(39) DEFAULT '' NOT NULL,
log_data tinyblob NOT NULL,
event_pid int(11) DEFAULT '-1' NOT NULL,
......@@ -237,13 +237,13 @@ CREATE TABLE sys_log (
# Table structure for table 'sys_language'
#
CREATE TABLE sys_language (
uid int(11) unsigned DEFAULT '0' NOT NULL auto_increment,
pid int(11) unsigned DEFAULT '0' NOT NULL,
tstamp int(11) unsigned DEFAULT '0' NOT NULL,
hidden tinyint(4) unsigned DEFAULT '0' NOT NULL,
uid int(11) DEFAULT '0' NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
tstamp int(11) DEFAULT '0' NOT NULL,
hidden tinyint(4) DEFAULT '0' NOT NULL,
title varchar(80) DEFAULT '' NOT NULL,
flag varchar(20) DEFAULT '' NOT NULL,
static_lang_isocode int(11) unsigned DEFAULT '0' NOT NULL,
static_lang_isocode int(11) DEFAULT '0' NOT NULL,
PRIMARY KEY (uid),
KEY parent (pid)
);
......
......@@ -9,13 +9,13 @@
# Table structure for table 'cache_pages'
#
CREATE TABLE cache_pages (
id int(11) unsigned DEFAULT '0' NOT NULL auto_increment,
id int(11) DEFAULT '0' NOT NULL auto_increment,
hash varchar(32) DEFAULT '' NOT NULL,
page_id int(11) unsigned DEFAULT '0' NOT NULL,
reg1 int(11) unsigned DEFAULT '0' NOT NULL,
page_id int(11) DEFAULT '0' NOT NULL,
reg1 int(11) DEFAULT '0' NOT NULL,
HTML mediumblob NOT NULL,
tstamp int(11) unsigned DEFAULT '0' NOT NULL,
expires int(10) unsigned DEFAULT '0' NOT NULL,
tstamp int(11) DEFAULT '0' NOT NULL,
expires int(10) DEFAULT '0' NOT NULL,
cache_data mediumblob NOT NULL,
KEY page_id (page_id),
KEY sel (hash,page_id),
......@@ -27,10 +27,10 @@ CREATE TABLE cache_pages (
# Table structure for table 'cache_pagesection'
#
CREATE TABLE cache_pagesection (
page_id int(11) unsigned DEFAULT '0' NOT NULL,
mpvar_hash int(11) unsigned DEFAULT '0' NOT NULL,
page_id int(11) DEFAULT '0' NOT NULL,
mpvar_hash int(11) DEFAULT '0' NOT NULL,
content blob NOT NULL,
tstamp int(11) unsigned DEFAULT '0' NOT NULL,
tstamp int(11) DEFAULT '0' NOT NULL,
PRIMARY KEY (page_id,mpvar_hash)
);
......@@ -67,8 +67,8 @@ CREATE TABLE cache_imagesizes (
md5filename varchar(32) DEFAULT '' NOT NULL,
tstamp int(11) DEFAULT '0' NOT NULL,
filename tinytext NOT NULL,
imagewidth mediumint(11) unsigned DEFAULT '0' NOT NULL,
imageheight mediumint(11) unsigned DEFAULT '0' NOT NULL,
imagewidth mediumint(11) DEFAULT '0' NOT NULL,
imageheight mediumint(11) DEFAULT '0' NOT NULL,
PRIMARY KEY (md5filename)
);
......@@ -77,13 +77,13 @@ CREATE TABLE cache_imagesizes (
# Table structure for table 'fe_groups'
#
CREATE TABLE fe_groups (
uid int(11) unsigned DEFAULT '0' NOT NULL auto_increment,
pid int(11) unsigned DEFAULT '0' NOT NULL,
tstamp int(11) unsigned DEFAULT '0' NOT NULL,
uid int(11) DEFAULT '0' NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
tstamp int(11) DEFAULT '0' NOT NULL,
title varchar(20) DEFAULT '' NOT NULL,
hidden tinyint(3) unsigned DEFAULT '0' NOT NULL,
hidden tinyint(3) DEFAULT '0' NOT NULL,
lockToDomain varchar(50) DEFAULT '' NOT NULL,
deleted tinyint(3) unsigned DEFAULT '0' NOT NULL,
deleted tinyint(3) DEFAULT '0' NOT NULL,
description text NOT NULL,
TSconfig blob NOT NULL,
PRIMARY KEY (uid),
......@@ -97,7 +97,7 @@ CREATE TABLE fe_groups (
CREATE TABLE fe_session_data (
hash varchar(32) DEFAULT '' NOT NULL,
content mediumblob NOT NULL,
tstamp int(11) unsigned DEFAULT '0' NOT NULL,
tstamp int(11) DEFAULT '0' NOT NULL,
PRIMARY KEY (hash)
);
......@@ -110,8 +110,8 @@ CREATE TABLE fe_sessions (
ses_name varchar(32) DEFAULT '' NOT NULL,
ses_iplock varchar(15) DEFAULT '' NOT NULL,
ses_hashlock int(11) DEFAULT '0' NOT NULL,
ses_userid int(11) unsigned DEFAULT '0' NOT NULL,
ses_tstamp int(11) unsigned DEFAULT '0' NOT NULL,
ses_userid int(11) DEFAULT '0' NOT NULL,
ses_tstamp int(11) DEFAULT '0' NOT NULL,
ses_data blob NOT NULL,
PRIMARY KEY (ses_id,ses_name)
);
......@@ -121,24 +121,24 @@ CREATE TABLE fe_sessions (
# Table structure for table 'fe_users'
#
CREATE TABLE fe_users (
uid int(11) unsigned DEFAULT '0' NOT NULL auto_increment,
pid int(11) unsigned DEFAULT '0' NOT NULL,
tstamp int(11) unsigned DEFAULT '0' NOT NULL,
uid int(11) DEFAULT '0' NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
tstamp int(11) DEFAULT '0' NOT NULL,
username varchar(50) DEFAULT '' NOT NULL,
password varchar(40) DEFAULT '' NOT NULL,
usergroup tinyblob NOT NULL,
disable tinyint(4) unsigned DEFAULT '0' NOT NULL,
starttime int(11) unsigned DEFAULT '0' NOT NULL,
endtime int(11) unsigned DEFAULT '0' NOT NULL,
disable tinyint(4) DEFAULT '0' NOT NULL,
starttime int(11) DEFAULT '0' NOT NULL,
endtime int(11) DEFAULT '0' NOT NULL,
name varchar(80) DEFAULT '' NOT NULL,
address tinytext NOT NULL,
telephone varchar(20) DEFAULT '' NOT NULL,
fax varchar(20) DEFAULT '' NOT NULL,
email varchar(80) DEFAULT '' NOT NULL,
crdate int(11) unsigned DEFAULT '0' NOT NULL,
cruser_id int(11) unsigned DEFAULT '0' NOT NULL,
crdate int(11) DEFAULT '0' NOT NULL,
cruser_id int(11) DEFAULT '0' NOT NULL,
lockToDomain varchar(50) DEFAULT '' NOT NULL,
deleted tinyint(3) unsigned DEFAULT '0' NOT NULL,
deleted tinyint(3) DEFAULT '0' NOT NULL,
uc blob NOT NULL,
title varchar(40) DEFAULT '' NOT NULL,
zip varchar(10) DEFAULT '' NOT NULL,
......@@ -148,11 +148,11 @@ CREATE TABLE fe_users (
company varchar(80) DEFAULT '' NOT NULL,
image tinyblob NOT NULL,
TSconfig blob NOT NULL,
module_sys_dmail_category int(10) unsigned DEFAULT '0' NOT NULL,
module_sys_dmail_html tinyint(3) unsigned DEFAULT '0' NOT NULL,
fe_cruser_id int(10) unsigned DEFAULT '0' NOT NULL,
lastlogin int(10) unsigned DEFAULT '0' NOT NULL,
is_online int(10) unsigned DEFAULT '0' NOT NULL,
module_sys_dmail_category int(10) DEFAULT '0' NOT NULL,
module_sys_dmail_html tinyint(3) DEFAULT '0' NOT NULL,
fe_cruser_id int(10) DEFAULT '0' NOT NULL,
lastlogin int(10) DEFAULT '0' NOT NULL,
is_online int(10) DEFAULT '0' NOT NULL,
PRIMARY KEY (uid),
KEY parent (pid),
KEY username (username),
......@@ -167,17 +167,17 @@ CREATE TABLE fe_users (
CREATE TABLE pages_language_overlay (
uid int(11) DEFAULT '0' NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
t3ver_oid int(11) unsigned DEFAULT '0' NOT NULL,
t3ver_id int(11) unsigned DEFAULT '0' NOT NULL,
t3ver_oid int(11) DEFAULT '0' NOT NULL,
t3ver_id int(11) DEFAULT '0' NOT NULL,
t3ver_label varchar(30) DEFAULT '' NOT NULL,
tstamp int(11) unsigned DEFAULT '0' NOT NULL,
crdate int(11) unsigned DEFAULT '0' NOT NULL,
cruser_id int(11) unsigned DEFAULT '0' NOT NULL,
sys_language_uid int(11) unsigned DEFAULT '0' NOT NULL,
tstamp int(11) DEFAULT '0' NOT NULL,
crdate int(11) DEFAULT '0' NOT NULL,
cruser_id int(11) DEFAULT '0' NOT NULL,
sys_language_uid int(11) DEFAULT '0' NOT NULL,
title tinytext NOT NULL,
hidden tinyint(4) unsigned DEFAULT '0' NOT NULL,
starttime int(11) unsigned DEFAULT '0' NOT NULL,
endtime int(11) unsigned DEFAULT '0' NOT NULL,
hidden tinyint(4) DEFAULT '0' NOT NULL,
starttime int(11) DEFAULT '0' NOT NULL,
endtime int(11) DEFAULT '0' NOT NULL,
subtitle tinytext NOT NULL,
nav_title tinytext NOT NULL,
media tinyblob NOT NULL,
......@@ -199,10 +199,10 @@ CREATE TABLE pages_language_overlay (
# Table structure for table 'static_template'
#
CREATE TABLE static_template (
uid int(11) unsigned DEFAULT '0' NOT NULL auto_increment,
pid int(11) unsigned DEFAULT '0' NOT NULL,
tstamp int(11) unsigned DEFAULT '0' NOT NULL,
crdate int(11) unsigned DEFAULT '0' NOT NULL,
uid int(11) DEFAULT '0' NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
tstamp int(11) DEFAULT '0' NOT NULL,
crdate int(11) DEFAULT '0' NOT NULL,
title tinytext NOT NULL,
include_static tinyblob NOT NULL,
constants blob NOT NULL,
......@@ -218,13 +218,13 @@ CREATE TABLE static_template (
# Table structure for table 'sys_domain'
#
CREATE TABLE sys_domain (
uid int(11) unsigned DEFAULT '0' NOT NULL auto_increment,
pid int(11) unsigned DEFAULT '0' NOT NULL,
tstamp int(11) unsigned DEFAULT '0' NOT NULL,
hidden tinyint(4) unsigned DEFAULT '0' NOT NULL,
uid int(11) DEFAULT '0' NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
tstamp int(11) DEFAULT '0' NOT NULL,
hidden tinyint(4) DEFAULT '0' NOT NULL,
domainName varchar(80) DEFAULT '' NOT NULL,
redirectTo varchar(120) DEFAULT '' NOT NULL,
sorting int(10) unsigned DEFAULT '0' NOT NULL,
sorting int(10) DEFAULT '0' NOT NULL,
prepend_params int(10) DEFAULT '0' NOT NULL,
PRIMARY KEY (uid),
......@@ -239,20 +239,20 @@ CREATE TABLE sys_domain (
CREATE TABLE sys_template (
uid int(11) DEFAULT '0' NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
t3ver_oid int(11) unsigned DEFAULT '0' NOT NULL,
t3ver_id int(11) unsigned DEFAULT '0' NOT NULL,
t3ver_oid int(11) DEFAULT '0' NOT NULL,
t3ver_id int(11) DEFAULT '0' NOT NULL,
t3ver_label varchar(30) DEFAULT '' NOT NULL,
tstamp int(11) unsigned DEFAULT '0' NOT NULL,
sorting int(11) unsigned DEFAULT '0' NOT NULL,
crdate int(11) unsigned DEFAULT '0' NOT NULL,
cruser_id int(11) unsigned DEFAULT '0' NOT NULL,
tstamp int(11) DEFAULT '0' NOT NULL,
sorting int(11) DEFAULT '0' NOT NULL,
crdate int(11) DEFAULT '0' NOT NULL,
cruser_id int(11) DEFAULT '0' NOT NULL,
title tinytext NOT NULL,
sitetitle tinytext NOT NULL,
hidden tinyint(4) unsigned DEFAULT '0' NOT NULL,
starttime int(11) unsigned DEFAULT '0' NOT NULL,
endtime int(11) unsigned DEFAULT '0' NOT NULL,
root tinyint(4) unsigned DEFAULT '0' NOT NULL,
clear tinyint(4) unsigned DEFAULT '0' NOT NULL,
hidden tinyint(4) DEFAULT '0' NOT NULL,
starttime int(11) DEFAULT '0' NOT NULL,
endtime int(11) DEFAULT '0' NOT NULL,
root tinyint(4) DEFAULT '0' NOT NULL,
clear tinyint(4) DEFAULT '0' NOT NULL,
include_static tinyblob NOT NULL,
include_static_file blob NOT NULL,
constants blob NOT NULL,
......@@ -262,9 +262,9 @@ CREATE TABLE sys_template (
nextLevel varchar(5) DEFAULT '' NOT NULL,
description text NOT NULL,
basedOn tinyblob NOT NULL,
deleted tinyint(3) unsigned DEFAULT '0' NOT NULL,
includeStaticAfterBasedOn tinyint(4) unsigned DEFAULT '0' NOT NULL,
static_file_mode tinyint(4) unsigned DEFAULT '0' NOT NULL,
deleted tinyint(3) DEFAULT '0' NOT NULL,
includeStaticAfterBasedOn tinyint(4) DEFAULT '0' NOT NULL,
static_file_mode tinyint(4) DEFAULT '0' NOT NULL,
tx_impexp_origuid int(11) DEFAULT '0' NOT NULL,
PRIMARY KEY (uid),
KEY t3ver_oid (t3ver_oid),
......@@ -278,66 +278,66 @@ CREATE TABLE sys_template (
CREATE TABLE tt_content (
uid int(11) DEFAULT '0' NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
t3ver_oid int(11) unsigned DEFAULT '0' NOT NULL,
t3ver_id int(11) unsigned DEFAULT '0' NOT NULL,
t3ver_oid int(11) DEFAULT '0' NOT NULL,
t3ver_id int(11) DEFAULT '0' NOT NULL,
t3ver_label varchar(30) DEFAULT '' NOT NULL,
tstamp int(11) unsigned DEFAULT '0' NOT NULL,
hidden tinyint(4) unsigned DEFAULT '0' NOT NULL,
sorting int(11) unsigned DEFAULT '0' NOT NULL,
tstamp int(11) DEFAULT '0' NOT NULL,
hidden tinyint(4) DEFAULT '0' NOT NULL,
sorting int(11) DEFAULT '0' NOT NULL,
CType varchar(30) DEFAULT '' NOT NULL,
header tinytext NOT NULL,
header_position varchar(6) DEFAULT '' NOT NULL,
bodytext mediumtext NOT NULL,
image blob NOT NULL,
imagewidth mediumint(11) unsigned DEFAULT '0' NOT NULL,
imageorient tinyint(4) unsigned DEFAULT '0' NOT NULL,
imagewidth mediumint(11) DEFAULT '0' NOT NULL,
imageorient tinyint(4) DEFAULT '0' NOT NULL,
imagecaption text NOT NULL,
imagecols tinyint(4) unsigned DEFAULT '0' NOT NULL,
imageborder tinyint(4) unsigned DEFAULT '0' NOT NULL,
imagecols tinyint(4) DEFAULT