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
+ `what` VARCHAR(255) NULL DEFAULT NULL,\r
`title` VARCHAR(50) NOT NULL DEFAULT '',\r
`sort` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,\r
- `descr` blob NOT NULL,\r
+ `descr` BLOB NOT NULL,\r
PRIMARY KEY (`id`)\r
) TYPE=MyISAM;\r
\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
+ `action` VARCHAR(255) NOT NULL DEFAULT '',\r
+ `what` VARCHAR(255) NULL DEFAULT NULL,\r
`title` VARCHAR(50) NOT NULL DEFAULT '',\r
`sort` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,\r
`visible` ENUM('Y','N') NOT NULL DEFAULT 'Y',\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
+ `action` VARCHAR(255) NOT NULL DEFAULT '',\r
+ `what` VARCHAR(255) NULL DEFAULT NULL,\r
`title` VARCHAR(50) NOT NULL DEFAULT '',\r
`sort` BIGINT(20) UNSIGNED 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) UNSIGNED NOT NULL DEFAULT 0,\r
PRIMARY KEY (`id`)\r
) TYPE=MyISAM;\r
`payment_id` TINYINT(3) UNSIGNED 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
+ `url` TINYTEXT NOT NULL,\r
`target_send` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,\r
`cat_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,\r
PRIMARY KEY (`id`)\r
`ref_clicks` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,\r
`total_logins` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,\r
`gender` ENUM('M','F') NOT NULL DEFAULT 'M',\r
- `used_points` DOUBLE(22,3) NOT NULL DEFAULT '0.000',\r
+ `used_points` FLOAT(22,3) NOT NULL DEFAULT '0.000',\r
`emails_sent` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,\r
PRIMARY KEY (`userid`)\r
) TYPE=MyISAM;\r
`id` BIGINT(22) NOT NULL AUTO_INCREMENT,\r
`userid` BIGINT(22) NOT NULL DEFAULT 0,\r
`ref_depth` TINYINT(3) UNSIGNED NOT NULL DEFAULT 0,\r
- `points` DOUBLE(22,3) NOT NULL DEFAULT '0.000',\r
+ `points` FLOAT(22,3) NOT NULL DEFAULT '0.000',\r
PRIMARY KEY (`id`)\r
) TYPE=MyISAM;\r
\r
ALTER TABLE `mxchange_config` ADD `auto_purge` TINYINT(3) UNSIGNED 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 `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
`cat_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,\r
`payment_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,\r
`subject` VARCHAR(200) NOT NULL DEFAULT '',\r
- `url` tinyblob NOT NULL,\r
+ `url` TINYBLOB NOT NULL,\r
`max_rec` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,\r
`timestamp_ordered` VARCHAR(10) NOT NULL DEFAULT '',\r
`pool_id` BIGINT(20) UNSIGNED 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
-UPDATE `mxchange_guest_menu` SET `counter`=0;\r
-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(20) UNSIGNED NOT NULL DEFAULT '100';\r
ALTER TABLE `mxchange_refbanner` ADD `clicks` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0;\r
ALTER TABLE `mxchange_config` ADD `online_timeout` BIGINT(20) UNSIGNED 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_timestamp` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0;\r
ALTER TABLE `mxchange_config` ADD `mad_count` BIGINT(20) UNSIGNED NOT NULL;\r
ALTER TABLE `mxchange_config` ADD `profile_update` BIGINT(20) UNSIGNED NOT NULL DEFAULT '15768000';\r
ALTER TABLE `mxchange_config` ADD `send_prof_update` ENUM('Y','N') NOT NULL DEFAULT 'Y';\r
CREATE TABLE `mxchange_extensions` (\r
`id` BIGINT(20) UNSIGNED 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 'INVALID',\r
PRIMARY KEY (`id`)\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
+ `points` FLOAT(20,3) NOT NULL DEFAULT '0.000',\r
PRIMARY KEY (`ok`)\r
) TYPE=MyISAM;\r
\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('Y','N') NOT NULL DEFAULT 'N';\r
ALTER TABLE `mxchange_user_data` MODIFY `last_profile_sent` VARCHAR(10) NOT NULL DEFAULT 0;\r