- Surfbar extended with dynamic percentage (only config)
[mailer.git] / install / tables.sql
index 24c48bbe9f056a7634e05dce698cbae14db88d54..4fc1f609b7aec78e3bac3e6d90c00ae232246136 100644 (file)
@@ -1,46 +1,46 @@
 DROP TABLE IF EXISTS `mxchange_admin_menu`;\r
 CREATE TABLE `mxchange_admin_menu` (\r
-  `id` bigint(22) NOT NULL auto_increment,\r
-  `action` varchar(255) NOT NULL default '',\r
-  `what` varchar(255) NOT NULL default '',\r
-  `title` varchar(50) NOT NULL default '',\r
-  `sort` bigint(20) NOT NULL default '0',\r
+  `id` BIGINT(22) NOT NULL AUTO_INCREMENT,\r
+  `action` VARCHAR(255) NOT NULL DEFAULT '',\r
+  `what` VARCHAR(255) NOT NULL DEFAULT '',\r
+  `title` VARCHAR(50) NOT NULL DEFAULT '',\r
+  `sort` BIGINT(20) NOT NULL DEFAULT '0',\r
   `descr` blob NOT NULL,\r
   PRIMARY KEY  (`id`)\r
 ) TYPE=MyISAM;\r
 \r
 DROP TABLE IF EXISTS `mxchange_admins`;\r
 CREATE TABLE `mxchange_admins` (\r
-  `id` bigint(20) NOT NULL auto_increment,\r
-  `login` varchar(100) NOT NULL default '',\r
-  `password` varchar(40) NOT NULL default '',\r
+  `id` BIGINT(20) NOT NULL AUTO_INCREMENT,\r
+  `login` VARCHAR(100) NOT NULL DEFAULT '',\r
+  `password` VARCHAR(40) NOT NULL DEFAULT '',\r
   PRIMARY KEY  (`id`)\r
 ) TYPE=MyISAM;\r
 \r
 DROP TABLE IF EXISTS `mxchange_cats`;\r
 CREATE TABLE `mxchange_cats` (\r
-  `id` bigint(22) NOT NULL auto_increment,\r
-  `cat` varchar(255) NOT NULL default '',\r
-  `visible` enum('Y','N') NOT NULL default 'Y',\r
-  `sort` bigint(20) NOT NULL default '0',\r
+  `id` BIGINT(22) NOT NULL AUTO_INCREMENT,\r
+  `cat` VARCHAR(255) NOT NULL DEFAULT '',\r
+  `visible` ENUM('Y','N') NOT NULL DEFAULT 'Y',\r
+  `sort` BIGINT(20) NOT NULL DEFAULT '0',\r
   PRIMARY KEY  (`id`)\r
 ) TYPE=MyISAM;\r
 \r
 DROP TABLE IF EXISTS `mxchange_config`;\r
 CREATE TABLE `mxchange_config` (\r
-  `config` tinyint(1) NOT NULL default '0',\r
-  `pass_len` tinyint(4) NOT NULL default '5',\r
-  `points_register` bigint(20) NOT NULL default '0',\r
-  `points_ref` bigint(20) NOT NULL default '0',\r
-  `least_cats` tinyint(4) NOT NULL default '5',\r
-  `check_double_email` enum('Y','N') NOT NULL default 'Y',\r
-  `check_double_pass` enum('Y','N') NOT NULL default 'N',\r
-  `admin_notify` enum('Y','N') NOT NULL default 'Y',\r
-  `url_tlock` bigint(20) NOT NULL default '86400',\r
-  `test_text` enum('Y','N') NOT NULL default 'Y',\r
-  `max_tlength` bigint(20) NOT NULL default '1000',\r
-  `test_subj` enum('Y','N') NOT NULL default 'Y',\r
-  `autosend_active` enum('Y','N') NOT NULL default 'N',\r
+  `config` tinyint(1) NOT NULL DEFAULT '0',\r
+  `pass_len` TINYINT(3) NOT NULL DEFAULT '5',\r
+  `points_register` BIGINT(20) NOT NULL DEFAULT '0',\r
+  `points_ref` BIGINT(20) NOT NULL DEFAULT '0',\r
+  `least_cats` TINYINT(3) NOT NULL DEFAULT '5',\r
+  `check_double_email` ENUM('Y','N') NOT NULL DEFAULT 'Y',\r
+  `check_double_pass` ENUM('Y','N') NOT NULL DEFAULT 'N',\r
+  `admin_notify` ENUM('Y','N') NOT NULL DEFAULT 'Y',\r
+  `url_tlock` BIGINT(20) NOT NULL DEFAULT '86400',\r
+  `test_text` ENUM('Y','N') NOT NULL DEFAULT 'Y',\r
+  `max_tlength` BIGINT(20) NOT NULL DEFAULT '1000',\r
+  `test_subj` ENUM('Y','N') NOT NULL DEFAULT 'Y',\r
+  `autosend_active` ENUM('Y','N') NOT NULL DEFAULT 'N',\r
   PRIMARY KEY  (`config`)\r
 ) TYPE=MyISAM;\r
 \r
@@ -48,49 +48,49 @@ INSERT INTO `mxchange_config` VALUES (0,5,2000,200,5,'Y','N','Y',86400,'Y',1000,
 \r
 DROP TABLE IF EXISTS `mxchange_guest_menu`;\r
 CREATE TABLE `mxchange_guest_menu` (\r
-  `id` bigint(22) NOT NULL auto_increment,\r
-  `action` varchar(20) NOT NULL default '',\r
-  `what` varchar(20) NOT NULL default '',\r
-  `title` varchar(50) NOT NULL default '',\r
-  `sort` bigint(20) NOT NULL default '0',\r
-  `visible` enum('Y','N') NOT NULL default 'Y',\r
-  `locked` enum('Y','N') NOT NULL default 'Y',\r
-  `counter` bigint(20) NOT NULL default '0',\r
+  `id` BIGINT(22) NOT NULL AUTO_INCREMENT,\r
+  `action` VARCHAR(20) NOT NULL DEFAULT '',\r
+  `what` VARCHAR(20) NOT NULL DEFAULT '',\r
+  `title` VARCHAR(50) NOT NULL DEFAULT '',\r
+  `sort` BIGINT(20) NOT NULL DEFAULT '0',\r
+  `visible` ENUM('Y','N') NOT NULL DEFAULT 'Y',\r
+  `locked` ENUM('Y','N') NOT NULL DEFAULT 'Y',\r
+  `counter` BIGINT(20) NOT NULL DEFAULT '0',\r
   PRIMARY KEY  (`id`)\r
 ) TYPE=MyISAM;\r
 \r
 DROP TABLE IF EXISTS `mxchange_max_receive`;\r
 CREATE TABLE `mxchange_max_receive` (\r
-  `id` bigint(22) NOT NULL auto_increment,\r
-  `value` mediumint(9) NOT NULL default '0',\r
-  `comment` varchar(255) NOT NULL default '',\r
+  `id` BIGINT(22) NOT NULL AUTO_INCREMENT,\r
+  `value` MEDIUMINT(9) NOT NULL DEFAULT '0',\r
+  `comment` VARCHAR(255) NOT NULL DEFAULT '',\r
   PRIMARY KEY  (`id`)\r
 ) TYPE=MyISAM;\r
 \r
 DROP TABLE IF EXISTS `mxchange_member_menu`;\r
 CREATE TABLE `mxchange_member_menu` (\r
-  `id` bigint(22) NOT NULL auto_increment,\r
-  `action` varchar(20) NOT NULL default '',\r
-  `what` varchar(20) NOT NULL default '',\r
-  `title` varchar(50) NOT NULL default '',\r
-  `sort` bigint(20) NOT NULL default '0',\r
-  `visible` enum('Y','N') NOT NULL default 'Y',\r
-  `locked` enum('Y','N') NOT NULL default 'Y',\r
+  `id` BIGINT(22) NOT NULL AUTO_INCREMENT,\r
+  `action` VARCHAR(20) NOT NULL DEFAULT '',\r
+  `what` VARCHAR(20) NOT NULL DEFAULT '',\r
+  `title` VARCHAR(50) NOT NULL DEFAULT '',\r
+  `sort` BIGINT(20) NOT NULL DEFAULT '0',\r
+  `visible` ENUM('Y','N') NOT NULL DEFAULT 'Y',\r
+  `locked` ENUM('Y','N') NOT NULL DEFAULT 'Y',\r
   `descr` blob NOT NULL,\r
-  `counter` bigint(20) NOT NULL default '0',\r
+  `counter` BIGINT(20) NOT NULL DEFAULT '0',\r
   PRIMARY KEY  (`id`)\r
 ) TYPE=MyISAM;\r
 \r
 DROP TABLE IF EXISTS `mxchange_mod_reg`;\r
 CREATE TABLE `mxchange_mod_reg` (\r
-  `id` bigint(20) NOT NULL auto_increment,\r
-  `module` varchar(50) NOT NULL default '',\r
-  `locked` enum('Y','N') NOT NULL default 'Y',\r
-  `hidden` enum('Y','N') NOT NULL default 'N',\r
-  `admin_only` enum('Y','N') NOT NULL default 'N',\r
-  `title` varchar(200) NOT NULL default '',\r
-  `mem_only` enum('Y','N') NOT NULL default 'N',\r
-  `clicks` bigint(20) NOT NULL default '0',\r
+  `id` BIGINT(20) NOT NULL AUTO_INCREMENT,\r
+  `module` VARCHAR(50) NOT NULL DEFAULT '',\r
+  `locked` ENUM('Y','N') NOT NULL DEFAULT 'Y',\r
+  `hidden` ENUM('Y','N') NOT NULL DEFAULT 'N',\r
+  `admin_only` ENUM('Y','N') NOT NULL DEFAULT 'N',\r
+  `title` VARCHAR(200) NOT NULL DEFAULT '',\r
+  `mem_only` ENUM('Y','N') NOT NULL DEFAULT 'N',\r
+  `clicks` BIGINT(20) NOT NULL DEFAULT '0',\r
   PRIMARY KEY  (`id`)\r
 ) TYPE=MyISAM;\r
 \r
@@ -104,45 +104,45 @@ INSERT INTO `mxchange_mod_reg` VALUES (8,'order','N','N','N','','N',0);
 \r
 DROP TABLE IF EXISTS `mxchange_payments`;\r
 CREATE TABLE `mxchange_payments` (\r
-  `id` bigint(20) NOT NULL auto_increment,\r
-  `time` int(11) NOT NULL default '0',\r
-  `payment` float(5,3) NOT NULL default '0.000',\r
-  `mail_title` varchar(255) NOT NULL default '',\r
-  `price` float(5,3) NOT NULL default '0.000',\r
+  `id` BIGINT(20) NOT NULL AUTO_INCREMENT,\r
+  `time` INT(7) NOT NULL DEFAULT '0',\r
+  `payment` FLOAT(5,3) NOT NULL DEFAULT '0.000',\r
+  `mail_title` VARCHAR(255) NOT NULL DEFAULT '',\r
+  `price` FLOAT(5,3) NOT NULL DEFAULT '0.000',\r
   PRIMARY KEY  (`id`)\r
 ) TYPE=MyISAM;\r
 \r
 DROP TABLE IF EXISTS `mxchange_pool`;\r
 CREATE TABLE `mxchange_pool` (\r
-  `id` bigint(20) NOT NULL auto_increment,\r
-  `sender` bigint(20) NOT NULL default '0',\r
-  `subject` varchar(200) NOT NULL default '',\r
-  `text` longblob NOT NULL,\r
-  `receivers` longblob NOT NULL,\r
-  `payment_id` tinyint(4) NOT NULL default '0',\r
-  `data_type` enum('TEMP','SEND','NEW','ADMIN') NOT NULL default 'TEMP',\r
-  `timestamp` varchar(10) NOT NULL default '0',\r
+  `id` BIGINT(20) NOT NULL AUTO_INCREMENT,\r
+  `sender` BIGINT(20) NOT NULL DEFAULT '0',\r
+  `subject` VARCHAR(200) NOT NULL DEFAULT '',\r
+  `text` LONGBLOB NOT NULL,\r
+  `receivers` LONGBLOB NOT NULL,\r
+  `payment_id` TINYINT(3) NOT NULL DEFAULT '0',\r
+  `data_type` ENUM('TEMP','SEND','NEW','ADMIN') NOT NULL DEFAULT 'TEMP',\r
+  `timestamp` VARCHAR(10) NOT NULL DEFAULT '0',\r
   `url` tinytext NOT NULL,\r
-  `target_send` bigint(20) NOT NULL default '0',\r
-  `cat_id` bigint(20) NOT NULL default '0',\r
+  `target_send` BIGINT(20) NOT NULL DEFAULT '0',\r
+  `cat_id` BIGINT(20) NOT NULL DEFAULT '0',\r
   PRIMARY KEY  (`id`)\r
 ) TYPE=MyISAM;\r
 \r
 DROP TABLE IF EXISTS `mxchange_refbanner`;\r
 CREATE TABLE `mxchange_refbanner` (\r
-  `id` bigint(22) NOT NULL auto_increment,\r
-  `url` text NOT NULL,\r
-  `alternate` text NOT NULL,\r
-  `visible` enum('Y','N') NOT NULL default 'Y',\r
-  `counter` bigint(22) NOT NULL default '0',\r
+  `id` BIGINT(22) NOT NULL AUTO_INCREMENT,\r
+  `url` TEXT NOT NULL,\r
+  `alternate` TEXT NOT NULL,\r
+  `visible` ENUM('Y','N') NOT NULL DEFAULT 'Y',\r
+  `counter` BIGINT(22) NOT NULL DEFAULT '0',\r
   PRIMARY KEY  (`id`)\r
 ) TYPE=MyISAM;\r
 \r
 DROP TABLE IF EXISTS `mxchange_refdepths`;\r
 CREATE TABLE `mxchange_refdepths` (\r
-  `id` tinyint(4) NOT NULL auto_increment,\r
-  `level` tinyint(4) NOT NULL default '0',\r
-  `percents` tinyint(4) NOT NULL default '0',\r
+  `id` TINYINT(3) NOT NULL AUTO_INCREMENT,\r
+  `level` TINYINT(3) NOT NULL DEFAULT '0',\r
+  `percents` TINYINT(3) NOT NULL DEFAULT '0',\r
   PRIMARY KEY  (`id`)\r
 ) TYPE=MyISAM;\r
 \r
@@ -155,96 +155,96 @@ INSERT INTO `mxchange_refdepths` VALUES (6,5,5);
 \r
 DROP TABLE IF EXISTS `mxchange_refsystem`;\r
 CREATE TABLE `mxchange_refsystem` (\r
-  `id` bigint(22) NOT NULL auto_increment,\r
-  `userid` bigint(20) NOT NULL default '0',\r
-  `level` tinyint(4) NOT NULL default '0',\r
-  `counter` bigint(20) NOT NULL default '0',\r
+  `id` BIGINT(22) NOT NULL AUTO_INCREMENT,\r
+  `userid` BIGINT(20) NOT NULL DEFAULT '0',\r
+  `level` TINYINT(3) NOT NULL DEFAULT '0',\r
+  `counter` BIGINT(20) NOT NULL DEFAULT '0',\r
   PRIMARY KEY  (`id`)\r
 ) TYPE=MyISAM;\r
 \r
 DROP TABLE IF EXISTS `mxchange_user_cats`;\r
 CREATE TABLE `mxchange_user_cats` (\r
-  `id` bigint(22) NOT NULL auto_increment,\r
-  `userid` bigint(20) NOT NULL default '0',\r
-  `cat_id` tinyint(4) NOT NULL default '0',\r
+  `id` BIGINT(22) NOT NULL AUTO_INCREMENT,\r
+  `userid` BIGINT(20) NOT NULL DEFAULT '0',\r
+  `cat_id` TINYINT(3) NOT NULL DEFAULT '0',\r
   PRIMARY KEY  (`id`)\r
 ) TYPE=MyISAM;\r
 \r
 DROP TABLE IF EXISTS `mxchange_user_data`;\r
 CREATE TABLE `mxchange_user_data` (\r
-  `userid` bigint(22) NOT NULL auto_increment,\r
-  `surname` varchar(255) NOT NULL default '',\r
-  `family` varchar(255) NOT NULL default '',\r
-  `street_nr` varchar(255) NOT NULL default '',\r
-  `country` varchar(4) NOT NULL default '',\r
-  `zip` varchar(6) NOT NULL default '',\r
-  `city` varchar(255) NOT NULL default '',\r
-  `email` varchar(255) NOT NULL default '',\r
-  `birth_day` char(2) NOT NULL default '01',\r
-  `birth_month` char(2) NOT NULL default '01',\r
-  `birth_year` varchar(4) NOT NULL default '1970',\r
-  `password` varchar(32) NOT NULL default '',\r
-  `max_mails` int(11) NOT NULL default '0',\r
-  `receive_mails` int(11) NOT NULL default '0',\r
-  `refid` bigint(22) NOT NULL default '0',\r
-  `status` enum('UNCONFIRMED','CONFIRMED','LOCKED') NOT NULL default 'UNCONFIRMED',\r
-  `user_hash` varchar(32) NOT NULL default '',\r
-  `REMOTE_ADDR` varchar(15) NOT NULL default '0.0.0.0',\r
-  `last_online` varchar(10) NOT NULL default '0',\r
-  `last_module` varchar(20) NOT NULL default '',\r
-  `ref_clicks` bigint(20) NOT NULL default '0',\r
-  `total_logins` bigint(20) NOT NULL default '0',\r
-  `sex` enum('M','F') NOT NULL default 'M',\r
-  `used_points` double(22,3) NOT NULL default '0.000',\r
-  `emails_sent` bigint(20) NOT NULL default '0',\r
+  `userid` BIGINT(22) NOT NULL AUTO_INCREMENT,\r
+  `surname` VARCHAR(255) NOT NULL DEFAULT '',\r
+  `family` VARCHAR(255) NOT NULL DEFAULT '',\r
+  `street_nr` VARCHAR(255) NOT NULL DEFAULT '',\r
+  `country` VARCHAR(4) NOT NULL DEFAULT '',\r
+  `zip` VARCHAR(6) NOT NULL DEFAULT '',\r
+  `city` VARCHAR(255) NOT NULL DEFAULT '',\r
+  `email` VARCHAR(255) NOT NULL DEFAULT '',\r
+  `birth_day` CHAR(2) NOT NULL DEFAULT '01',\r
+  `birth_month` CHAR(2) NOT NULL DEFAULT '01',\r
+  `birth_year` VARCHAR(4) NOT NULL DEFAULT '1970',\r
+  `password` VARCHAR(32) NOT NULL DEFAULT '',\r
+  `max_mails` INT(7) NOT NULL DEFAULT '0',\r
+  `receive_mails` INT(7) NOT NULL DEFAULT '0',\r
+  `refid` BIGINT(22) NOT NULL DEFAULT '0',\r
+  `status` ENUM('UNCONFIRMED','CONFIRMED','LOCKED') NOT NULL DEFAULT 'UNCONFIRMED',\r
+  `user_hash` VARCHAR(32) NOT NULL DEFAULT '',\r
+  `REMOTE_ADDR` VARCHAR(15) NOT NULL DEFAULT '0.0.0.0',\r
+  `last_online` VARCHAR(10) NOT NULL DEFAULT '0',\r
+  `last_module` VARCHAR(20) NOT NULL DEFAULT '',\r
+  `ref_clicks` BIGINT(20) NOT NULL DEFAULT '0',\r
+  `total_logins` BIGINT(20) NOT NULL DEFAULT '0',\r
+  `sex` ENUM('M','F') NOT NULL DEFAULT 'M',\r
+  `used_points` DOUBLE(22,3) NOT NULL DEFAULT '0.000',\r
+  `emails_sent` BIGINT(20) NOT NULL DEFAULT '0',\r
   PRIMARY KEY  (`userid`)\r
 ) TYPE=MyISAM;\r
 \r
 DROP TABLE IF EXISTS `mxchange_user_points`;\r
 CREATE TABLE `mxchange_user_points` (\r
-  `id` bigint(22) NOT NULL auto_increment,\r
-  `userid` bigint(22) NOT NULL default '0',\r
-  `ref_depth` tinyint(4) NOT NULL default '0',\r
-  `points` double(22,3) NOT NULL default '0.000',\r
+  `id` BIGINT(22) NOT NULL AUTO_INCREMENT,\r
+  `userid` BIGINT(22) NOT NULL DEFAULT '0',\r
+  `ref_depth` TINYINT(3) NOT NULL DEFAULT '0',\r
+  `points` DOUBLE(22,3) NOT NULL DEFAULT '0.000',\r
   PRIMARY KEY  (`id`)\r
 ) TYPE=MyISAM;\r
 \r
-alter table `mxchange_config` add `max_send` tinyint not null default '100';\r
-alter table `mxchange_config` add `url_blacklist` enum('Y','N') not null default 'Y';\r
-alter table `mxchange_config` add `auto_purge` tinyint not null default '14';\r
-alter table `mxchange_config` add `auto_purge_active` enum('Y','N') not null default 'Y';\r
+alter table `mxchange_config` add `max_send` TINYINT(3) NOT NULL DEFAULT '100';\r
+alter table `mxchange_config` add `url_blacklist` ENUM('Y','N') NOT NULL DEFAULT 'Y';\r
+alter table `mxchange_config` add `auto_purge` TINYINT(3) NOT NULL DEFAULT '14';\r
+alter table `mxchange_config` add `auto_purge_active` ENUM('Y','N') NOT NULL DEFAULT 'Y';\r
 \r
-alter table `mxchange_pool` modify `url` tinytext not null;\r
-alter table `mxchange_pool` change `url` `url` tinyblob not null;\r
-alter table `mxchange_pool` modify `data_type` enum('TEMP','SEND','NEW','ADMIN','ACTIVE') not null default 'TEMP';\r
+alter table `mxchange_pool` modify `url` tinytext NOT NULL;\r
+alter table `mxchange_pool` change `url` `url` tinyblob NOT NULL;\r
+alter table `mxchange_pool` modify `data_type` ENUM('TEMP','SEND','NEW','ADMIN','ACTIVE') NOT NULL DEFAULT 'TEMP';\r
 \r
 DROP TABLE IF EXISTS `mxchange_user_links`;\r
 CREATE TABLE `mxchange_user_links` (\r
-  `id` bigint(20) NOT NULL auto_increment,\r
-  `stats_id` bigint(20) NOT NULL default '0',\r
-  `userid` bigint(20) NOT NULL default '0',\r
-  `link_type` enum('NORMAL') NOT NULL default 'NORMAL',\r
+  `id` BIGINT(20) NOT NULL AUTO_INCREMENT,\r
+  `stats_id` BIGINT(20) NOT NULL DEFAULT '0',\r
+  `userid` BIGINT(20) NOT NULL DEFAULT '0',\r
+  `link_type` ENUM('NORMAL') NOT NULL DEFAULT 'NORMAL',\r
   PRIMARY KEY  (`id`)\r
 ) TYPE=MyISAM;\r
 \r
 DROP TABLE IF EXISTS `mxchange_user_stats`;\r
 CREATE TABLE `mxchange_user_stats` (\r
-  `id` bigint(20) NOT NULL auto_increment,\r
-  `userid` bigint(20) NOT NULL default '0',\r
-  `cat_id` bigint(20) NOT NULL default '0',\r
-  `payment_id` bigint(20) NOT NULL default '0',\r
-  `subject` varchar(200) NOT NULL default '',\r
+  `id` BIGINT(20) NOT NULL AUTO_INCREMENT,\r
+  `userid` BIGINT(20) NOT NULL DEFAULT '0',\r
+  `cat_id` BIGINT(20) NOT NULL DEFAULT '0',\r
+  `payment_id` BIGINT(20) NOT NULL DEFAULT '0',\r
+  `subject` VARCHAR(200) NOT NULL DEFAULT '',\r
   `url` tinyblob NOT NULL,\r
-  `max_rec` bigint(20) NOT NULL default '0',\r
-  `timestamp_ordered` varchar(10) NOT NULL default '',\r
-  `pool_id` bigint(20) NOT NULL default '0',\r
-  `timestamp_sstart` varchar(10) NOT NULL default '',\r
-  `timestamp_send` varchar(10) NOT NULL default '',\r
+  `max_rec` BIGINT(20) NOT NULL DEFAULT '0',\r
+  `timestamp_ordered` VARCHAR(10) NOT NULL DEFAULT '',\r
+  `pool_id` BIGINT(20) NOT NULL DEFAULT '0',\r
+  `timestamp_sstart` VARCHAR(10) NOT NULL DEFAULT '',\r
+  `timestamp_send` VARCHAR(10) NOT NULL DEFAULT '',\r
   PRIMARY KEY  (`id`)\r
 ) TYPE=MyISAM;\r
 \r
-alter table `mxchange_user_data` add `joined` varchar(10) not null default '0';\r
-alter table `mxchange_config` add `last_update` varchar(10) not null default '0';\r
+alter table `mxchange_user_data` add `joined` VARCHAR(10) NOT NULL DEFAULT '0';\r
+alter table `mxchange_config` add `last_update` VARCHAR(10) NOT NULL DEFAULT '0';\r
 \r
 UPDATE `mxchange_member_menu` SET `locked` = 'N' WHERE 'id'='12' OR 'id'='11' LIMIT 1;\r
 \r
@@ -252,37 +252,37 @@ UPDATE `mxchange_guest_menu` SET `counter`=0;
 UPDATE `mxchange_member_menu` SET `counter`=0;\r
 \r
 INSERT INTO `mxchange_mod_reg` VALUES (NULL,'chk_login','N','N','N','','N',0);\r
-alter table `mxchange_pool` modify `data_type` enum('TEMP','SEND','NEW','ADMIN','ACTIVE') not null default 'TEMP';\r
-alter table `mxchange_config` add `unconfirmed` bigint not null default '100';\r
-alter table `mxchange_config` add `profile_lock` bigint not null default '86400';\r
-alter table `mxchange_user_data` add `last_update` varchar(10) not null default '0';\r
-alter table `mxchange_refbanner` add `clicks` bigint not null default '0';\r
-alter table `mxchange_config` add `online_timeout` bigint not null default '1800';\r
+alter table `mxchange_pool` modify `data_type` ENUM('TEMP','SEND','NEW','ADMIN','ACTIVE') NOT NULL DEFAULT 'TEMP';\r
+alter table `mxchange_config` add `unconfirmed` BIGINT(20) NOT NULL DEFAULT '100';\r
+alter table `mxchange_config` add `profile_lock` BIGINT(20) NOT NULL DEFAULT '86400';\r
+alter table `mxchange_user_data` add `last_update` VARCHAR(10) NOT NULL DEFAULT '0';\r
+alter table `mxchange_refbanner` add `clicks` BIGINT(20) NOT NULL DEFAULT '0';\r
+alter table `mxchange_config` add `online_timeout` BIGINT(20) NOT NULL DEFAULT '1800';\r
 \r
-alter table `mxchange_config` add `mad_timestamp` varchar(10) not null default '0';\r
-alter table `mxchange_config` add `mad_count` bigint not null;\r
-alter table `mxchange_config` add `profile_update` bigint not null default '15768000';\r
-alter table `mxchange_config` add `send_prof_update` enum('Y','N') not null default 'Y';\r
-alter table `mxchange_config` add `resend_profile_update` bigint not null default '172800';\r
+alter table `mxchange_config` add `mad_timestamp` VARCHAR(10) NOT NULL DEFAULT '0';\r
+alter table `mxchange_config` add `mad_count` BIGINT(20) NOT NULL;\r
+alter table `mxchange_config` add `profile_update` BIGINT(20) NOT NULL DEFAULT '15768000';\r
+alter table `mxchange_config` add `send_prof_update` ENUM('Y','N') NOT NULL DEFAULT 'Y';\r
+alter table `mxchange_config` add `resend_profile_update` BIGINT(20) NOT NULL DEFAULT '172800';\r
 \r
-alter table `mxchange_user_data` add `last_profile_sent` varchar(10) not null default '0';\r
-alter table `mxchange_user_data` add `notified` enum('Y','N') not null default 'N';\r
+alter table `mxchange_user_data` add `last_profile_sent` VARCHAR(10) NOT NULL DEFAULT '0';\r
+alter table `mxchange_user_data` add `notified` ENUM('Y','N') NOT NULL DEFAULT 'N';\r
 \r
-alter table `mxchange_config` add `patch_level` varchar(100) not null default '78';\r
-alter table `mxchange_config` add `patch_ctime` varchar(10) not null default '0';\r
+alter table `mxchange_config` add `patch_level` VARCHAR(100) NOT NULL DEFAULT '78';\r
+alter table `mxchange_config` add `patch_ctime` VARCHAR(10) NOT NULL DEFAULT '0';\r
 \r
-alter table `mxchange_admins` add `email` varchar(255) not null;\r
+alter table `mxchange_admins` add `email` VARCHAR(255) NOT NULL;\r
 \r
 DROP TABLE IF EXISTS `mxchange_task_system`;\r
 CREATE TABLE `mxchange_task_system` (\r
-  `id` bigint(20) NOT NULL auto_increment,\r
-  `assigned_admin` bigint(20) NOT NULL default '0',\r
-  `userid` bigint(20) NOT NULL default '0',\r
-  `status` enum('NEW','OPEN','SOLVED','CLOSED','DELETED') NOT NULL default 'NEW',\r
-  `task_type` enum('FIRST_USER','SUPPORT_MEMBER','SUPPORT_ADMIN','OTHERS', 'EXTENSION', 'EXTENSION_UPDATE') NOT NULL default 'FIRST_USER',\r
-  `subject` varchar(255) NOT NULL default '',\r
-  `text` longblob NOT NULL,\r
-  `task_created` varchar(10) NOT NULL default '0',\r
+  `id` BIGINT(20) NOT NULL AUTO_INCREMENT,\r
+  `assigned_admin` BIGINT(20) NOT NULL DEFAULT '0',\r
+  `userid` BIGINT(20) NOT NULL DEFAULT '0',\r
+  `status` ENUM('NEW','OPEN','SOLVED','CLOSED','DELETED') NOT NULL DEFAULT 'NEW',\r
+  `task_type` ENUM('FIRST_USER','SUPPORT_MEMBER','SUPPORT_ADMIN','OTHERS', 'EXTENSION', 'EXTENSION_UPDATE') NOT NULL DEFAULT 'FIRST_USER',\r
+  `subject` VARCHAR(255) NOT NULL DEFAULT '',\r
+  `text` LONGBLOB NOT NULL,\r
+  `task_created` VARCHAR(10) NOT NULL DEFAULT '0',\r
   KEY (`assigned_admin`),\r
   PRIMARY KEY  (`id`)\r
 ) TYPE=MyISAM;\r
@@ -304,43 +304,43 @@ ALTER TABLE `mxchange_user_stats` ADD INDEX (`cat_id`);
 ALTER TABLE `mxchange_user_stats` ADD INDEX (`payment_id`);\r
 ALTER TABLE `mxchange_user_stats` ADD INDEX (`pool_id`);\r
 \r
-alter table `mxchange_user_stats` add `clicks` bigint not null;\r
-alter table `mxchange_config` add `code_length` tinyint not null default '5';\r
-alter table `mxchange_config` add `guest_stats` enum('MEMBERS','MODULES','INACTIVE') not null default 'MEMBERS';\r
-alter table `mxchange_config` add `ref_payout` tinyint not null default '5';\r
-alter table `mxchange_user_data` add `ref_payout` tinyint not null default '0';\r
-alter table `mxchange_user_points` add `locked_points` bigint not null default '0';\r
+alter table `mxchange_user_stats` add `clicks` BIGINT(20) NOT NULL;\r
+alter table `mxchange_config` add `code_length` TINYINT(3) NOT NULL DEFAULT '5';\r
+alter table `mxchange_config` add `guest_stats` ENUM('MEMBERS','MODULES','INACTIVE') NOT NULL DEFAULT 'MEMBERS';\r
+alter table `mxchange_config` add `ref_payout` TINYINT(3) NOT NULL DEFAULT '5';\r
+alter table `mxchange_user_data` add `ref_payout` TINYINT(3) NOT NULL DEFAULT '0';\r
+alter table `mxchange_user_points` add `locked_points` BIGINT(20) NOT NULL DEFAULT '0';\r
 \r
 DROP TABLE IF EXISTS `mxchange_extensions`;\r
 CREATE TABLE `mxchange_extensions` (\r
-  `id` bigint(20) NOT NULL auto_increment,\r
-  `ext_name` varchar(255) NOT NULL default '',\r
-  `ext_lang_file` varchar(255) NOT NULL default '',\r
-  `ext_active` enum('Y','N') NOT NULL default 'N',\r
-  `ext_version` varchar(255) NOT NULL default '0.',\r
+  `id` BIGINT(20) NOT NULL AUTO_INCREMENT,\r
+  `ext_name` VARCHAR(255) NOT NULL DEFAULT '',\r
+  `ext_lang_file` VARCHAR(255) NOT NULL DEFAULT '',\r
+  `ext_active` ENUM('Y','N') NOT NULL DEFAULT 'N',\r
+  `ext_version` VARCHAR(255) NOT NULL DEFAULT '0.',\r
   PRIMARY KEY  (`id`)\r
 ) TYPE=MyISAM;\r
 \r
 DROP TABLE IF EXISTS `mxchange_jackpot`;\r
 CREATE TABLE `mxchange_jackpot` (\r
-  `ok` char(2) NOT NULL default 'ok',\r
-  `points` double(23,3) NOT NULL default '0.000',\r
+  `ok` CHAR(2) NOT NULL DEFAULT 'ok',\r
+  `points` DOUBLE(23,3) NOT NULL DEFAULT '0.000',\r
   PRIMARY KEY  (`ok`)\r
 ) TYPE=MyISAM;\r
 \r
-alter table `mxchange_config` add `activate_xchange` bigint(20) not null default '100';\r
-alter table `mxchange_config` add `order_multi_page` enum('Y','N') not null default 'Y';\r
-alter table `mxchange_config` add `display_refid` enum('Y','N') not null default 'Y';\r
-alter table `mxchange_config` add `ip_timeout` bigint(20) not null default '86400';\r
-alter table `mxchange_pool` add `zip` varchar(6) not null default '';\r
-\r
-alter table `mxchange_task_system` change `task_type` `task_type` varchar(255)  not null default 'FIRST_USER';\r
-alter table `mxchange_user_data` modify `zip` varchar(6) not null default '';\r
-alter table `mxchange_admin_menu` modify `action` varchar(255) not null default '';\r
-alter table `mxchange_admin_menu` modify `what` varchar(255) not null default '';\r
-alter table `mxchange_user_data` modify `last_module` varchar(255) not null default '';\r
-alter table `mxchange_config` add `allow_direct_pay` enum('N', 'Y') not null default 'N';\r
-alter table `mxchange_user_data` modify `last_profile_sent` varchar(10)  not null default '0';\r
-alter table `mxchange_user_data` modify `last_update` varchar(10)  not null default '0';\r
-alter table `mxchange_user_data` modify `joined` varchar(10)  not null default '0';\r
-alter table `mxchange_user_data` modify `last_online` varchar(10)  not null default '0';\r
+alter table `mxchange_config` add `activate_xchange` BIGINT(20) NOT NULL DEFAULT '100';\r
+alter table `mxchange_config` add `order_multi_page` ENUM('Y','N') NOT NULL DEFAULT 'Y';\r
+alter table `mxchange_config` add `display_refid` ENUM('Y','N') NOT NULL DEFAULT 'Y';\r
+alter table `mxchange_config` add `ip_timeout` BIGINT(20) NOT NULL DEFAULT '86400';\r
+alter table `mxchange_pool` add `zip` VARCHAR(6) NOT NULL DEFAULT '';\r
+\r
+alter table `mxchange_task_system` change `task_type` `task_type` VARCHAR(255)  NOT NULL DEFAULT 'FIRST_USER';\r
+alter table `mxchange_user_data` modify `zip` VARCHAR(6) NOT NULL DEFAULT '';\r
+alter table `mxchange_admin_menu` modify `action` VARCHAR(255) NOT NULL DEFAULT '';\r
+alter table `mxchange_admin_menu` modify `what` VARCHAR(255) NOT NULL DEFAULT '';\r
+alter table `mxchange_user_data` modify `last_module` VARCHAR(255) NOT NULL DEFAULT '';\r
+alter table `mxchange_config` add `allow_direct_pay` ENUM('N', 'Y') NOT NULL DEFAULT 'N';\r
+alter table `mxchange_user_data` modify `last_profile_sent` VARCHAR(10)  NOT NULL DEFAULT '0';\r
+alter table `mxchange_user_data` modify `last_update` VARCHAR(10)  NOT NULL DEFAULT '0';\r
+alter table `mxchange_user_data` modify `joined` VARCHAR(10)  NOT NULL DEFAULT '0';\r
+alter table `mxchange_user_data` modify `last_online` VARCHAR(10)  NOT NULL DEFAULT '0';\r