]> git.mxchange.org Git - mailer.git/blobdiff - install/tables.sql
Fixed typo in function name
[mailer.git] / install / tables.sql
index 61f7bfb2fabc4b942c54b37d19db9c60dde708d6..8c78fbc5490674fb63e03ae1dfb7667aad4c32e1 100644 (file)
@@ -1,24 +1,24 @@
-DROP TABLE IF EXISTS `mxchange_admin_menu`;\r
-CREATE TABLE `mxchange_admin_menu` (\r
+DROP TABLE IF EXISTS `{!prefix!}_admin_menu`;\r
+CREATE TABLE `{!prefix!}_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_admins`;\r
-CREATE TABLE `mxchange_admins` (\r
+DROP TABLE IF EXISTS `{!prefix!}_admins`;\r
+CREATE TABLE `{!prefix!}_admins` (\r
   `id` BIGINT(20) UNSIGNED 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
+DROP TABLE IF EXISTS `{!prefix!}_cats`;\r
+CREATE TABLE `{!prefix!}_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
@@ -26,8 +26,8 @@ CREATE TABLE `mxchange_cats` (
   PRIMARY KEY  (`id`)\r
 ) TYPE=MyISAM;\r
 \r
-DROP TABLE IF EXISTS `mxchange_config`;\r
-CREATE TABLE `mxchange_config` (\r
+DROP TABLE IF EXISTS `{!prefix!}_config`;\r
+CREATE TABLE `{!prefix!}_config` (\r
   `config` tinyint(1) NOT NULL DEFAULT 0,\r
   `pass_len` TINYINT(3) UNSIGNED NOT NULL DEFAULT 5,\r
   `points_register` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,\r
@@ -44,13 +44,13 @@ CREATE TABLE `mxchange_config` (
   PRIMARY KEY  (`config`)\r
 ) TYPE=MyISAM;\r
 \r
-INSERT INTO `mxchange_config` VALUES (0,5,2000,200,5,'Y','N','Y',86400,'Y',1000,'Y','N');\r
+INSERT INTO `{!prefix!}_config` VALUES (0,5,2000,200,5,'Y','N','Y',86400,'Y',1000,'Y','N');\r
 \r
-DROP TABLE IF EXISTS `mxchange_guest_menu`;\r
-CREATE TABLE `mxchange_guest_menu` (\r
+DROP TABLE IF EXISTS `{!prefix!}_guest_menu`;\r
+CREATE TABLE `{!prefix!}_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
@@ -59,19 +59,19 @@ CREATE TABLE `mxchange_guest_menu` (
   PRIMARY KEY  (`id`)\r
 ) TYPE=MyISAM;\r
 \r
-DROP TABLE IF EXISTS `mxchange_max_receive`;\r
-CREATE TABLE `mxchange_max_receive` (\r
+DROP TABLE IF EXISTS `{!prefix!}_max_receive`;\r
+CREATE TABLE `{!prefix!}_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
   PRIMARY KEY  (`id`)\r
 ) TYPE=MyISAM;\r
 \r
-DROP TABLE IF EXISTS `mxchange_member_menu`;\r
-CREATE TABLE `mxchange_member_menu` (\r
+DROP TABLE IF EXISTS `{!prefix!}_member_menu`;\r
+CREATE TABLE `{!prefix!}_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
@@ -80,8 +80,8 @@ CREATE TABLE `mxchange_member_menu` (
   PRIMARY KEY  (`id`)\r
 ) TYPE=MyISAM;\r
 \r
-DROP TABLE IF EXISTS `mxchange_mod_reg`;\r
-CREATE TABLE `mxchange_mod_reg` (\r
+DROP TABLE IF EXISTS `{!prefix!}_mod_reg`;\r
+CREATE TABLE `{!prefix!}_mod_reg` (\r
   `id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,\r
   `module` VARCHAR(50) NOT NULL DEFAULT '',\r
   `locked` ENUM('Y','N') NOT NULL DEFAULT 'Y',\r
@@ -93,16 +93,16 @@ CREATE TABLE `mxchange_mod_reg` (
   PRIMARY KEY  (`id`)\r
 ) TYPE=MyISAM;\r
 \r
-INSERT INTO `mxchange_mod_reg` VALUES (1,'admin','N','N','Y','','N',0);\r
-INSERT INTO `mxchange_mod_reg` VALUES (2,'index','N','N','N','','N',0);\r
-INSERT INTO `mxchange_mod_reg` VALUES (3,'frameset','Y','N','N','','N',0);\r
-INSERT INTO `mxchange_mod_reg` VALUES (4,'login','N','N','N','','Y',0);\r
-INSERT INTO `mxchange_mod_reg` VALUES (6,'frametester','N','Y','N','','N',0);\r
-INSERT INTO `mxchange_mod_reg` VALUES (7,'loader','N','Y','N','','N',0);\r
-INSERT INTO `mxchange_mod_reg` VALUES (8,'order','N','N','N','','N',0);\r
+INSERT INTO `{!prefix!}_mod_reg` VALUES (1,'admin','N','N','Y','','N',0);\r
+INSERT INTO `{!prefix!}_mod_reg` VALUES (2,'index','N','N','N','','N',0);\r
+INSERT INTO `{!prefix!}_mod_reg` VALUES (3,'frameset','Y','N','N','','N',0);\r
+INSERT INTO `{!prefix!}_mod_reg` VALUES (4,'login','N','N','N','','Y',0);\r
+INSERT INTO `{!prefix!}_mod_reg` VALUES (6,'frametester','N','Y','N','','N',0);\r
+INSERT INTO `{!prefix!}_mod_reg` VALUES (7,'loader','N','Y','N','','N',0);\r
+INSERT INTO `{!prefix!}_mod_reg` VALUES (8,'order','N','N','N','','N',0);\r
 \r
-DROP TABLE IF EXISTS `mxchange_payments`;\r
-CREATE TABLE `mxchange_payments` (\r
+DROP TABLE IF EXISTS `{!prefix!}_payments`;\r
+CREATE TABLE `{!prefix!}_payments` (\r
   `id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,\r
   `time` INT(7) NOT NULL DEFAULT 0,\r
   `payment` FLOAT(5,3) UNSIGNED NOT NULL DEFAULT '0.000',\r
@@ -111,8 +111,8 @@ CREATE TABLE `mxchange_payments` (
   PRIMARY KEY  (`id`)\r
 ) TYPE=MyISAM;\r
 \r
-DROP TABLE IF EXISTS `mxchange_pool`;\r
-CREATE TABLE `mxchange_pool` (\r
+DROP TABLE IF EXISTS `{!prefix!}_pool`;\r
+CREATE TABLE `{!prefix!}_pool` (\r
   `id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,\r
   `sender` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,\r
   `subject` VARCHAR(200) NOT NULL DEFAULT '',\r
@@ -121,14 +121,14 @@ CREATE TABLE `mxchange_pool` (
   `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
 ) TYPE=MyISAM;\r
 \r
-DROP TABLE IF EXISTS `mxchange_refbanner`;\r
-CREATE TABLE `mxchange_refbanner` (\r
+DROP TABLE IF EXISTS `{!prefix!}_refbanner`;\r
+CREATE TABLE `{!prefix!}_refbanner` (\r
   `id` BIGINT(22) NOT NULL AUTO_INCREMENT,\r
   `url` TEXT NOT NULL,\r
   `alternate` TEXT NOT NULL,\r
@@ -137,23 +137,23 @@ CREATE TABLE `mxchange_refbanner` (
   PRIMARY KEY  (`id`)\r
 ) TYPE=MyISAM;\r
 \r
-DROP TABLE IF EXISTS `mxchange_refdepths`;\r
-CREATE TABLE `mxchange_refdepths` (\r
+DROP TABLE IF EXISTS `{!prefix!}_refdepths`;\r
+CREATE TABLE `{!prefix!}_refdepths` (\r
   `id` TINYINT(3) UNSIGNED NOT NULL AUTO_INCREMENT,\r
   `level` TINYINT(3) UNSIGNED NOT NULL DEFAULT 0,\r
   `percents` TINYINT(3) UNSIGNED NOT NULL DEFAULT 0,\r
   PRIMARY KEY  (`id`)\r
 ) TYPE=MyISAM;\r
 \r
-INSERT INTO `mxchange_refdepths` VALUES (1,0,100);\r
-INSERT INTO `mxchange_refdepths` VALUES (2,1,30);\r
-INSERT INTO `mxchange_refdepths` VALUES (3,2,15);\r
-INSERT INTO `mxchange_refdepths` VALUES (4,3,10);\r
-INSERT INTO `mxchange_refdepths` VALUES (5,4,8);\r
-INSERT INTO `mxchange_refdepths` VALUES (6,5,5);\r
+INSERT INTO `{!prefix!}_refdepths` VALUES (1,0,100);\r
+INSERT INTO `{!prefix!}_refdepths` VALUES (2,1,30);\r
+INSERT INTO `{!prefix!}_refdepths` VALUES (3,2,15);\r
+INSERT INTO `{!prefix!}_refdepths` VALUES (4,3,10);\r
+INSERT INTO `{!prefix!}_refdepths` VALUES (5,4,8);\r
+INSERT INTO `{!prefix!}_refdepths` VALUES (6,5,5);\r
 \r
-DROP TABLE IF EXISTS `mxchange_refsystem`;\r
-CREATE TABLE `mxchange_refsystem` (\r
+DROP TABLE IF EXISTS `{!prefix!}_refsystem`;\r
+CREATE TABLE `{!prefix!}_refsystem` (\r
   `id` BIGINT(22) NOT NULL AUTO_INCREMENT,\r
   `userid` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,\r
   `level` TINYINT(3) UNSIGNED NOT NULL DEFAULT 0,\r
@@ -161,16 +161,16 @@ CREATE TABLE `mxchange_refsystem` (
   PRIMARY KEY  (`id`)\r
 ) TYPE=MyISAM;\r
 \r
-DROP TABLE IF EXISTS `mxchange_user_cats`;\r
-CREATE TABLE `mxchange_user_cats` (\r
+DROP TABLE IF EXISTS `{!prefix!}_user_cats`;\r
+CREATE TABLE `{!prefix!}_user_cats` (\r
   `id` BIGINT(22) NOT NULL AUTO_INCREMENT,\r
   `userid` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,\r
   `cat_id` TINYINT(3) UNSIGNED 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
+DROP TABLE IF EXISTS `{!prefix!}_user_data`;\r
+CREATE TABLE `{!prefix!}_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
@@ -194,31 +194,31 @@ CREATE TABLE `mxchange_user_data` (
   `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
 \r
-DROP TABLE IF EXISTS `mxchange_user_points`;\r
-CREATE TABLE `mxchange_user_points` (\r
+DROP TABLE IF EXISTS `{!prefix!}_user_points`;\r
+CREATE TABLE `{!prefix!}_user_points` (\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 `max_send` TINYINT(3) UNSIGNED 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) UNSIGNED NOT NULL DEFAULT '14';\r
-ALTER TABLE `mxchange_config` ADD `auto_purge_active` ENUM('Y','N') NOT NULL DEFAULT 'Y';\r
+ALTER TABLE `{!prefix!}_config` ADD `max_send` TINYINT(3) UNSIGNED NOT NULL DEFAULT '100';\r
+ALTER TABLE `{!prefix!}_config` ADD `url_blacklist` ENUM('Y','N') NOT NULL DEFAULT 'Y';\r
+ALTER TABLE `{!prefix!}_config` ADD `auto_purge` TINYINT(3) UNSIGNED NOT NULL DEFAULT '14';\r
+ALTER TABLE `{!prefix!}_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 `{!prefix!}_pool` MODIFY `url` TINYTEXT NOT NULL;\r
+ALTER TABLE `{!prefix!}_pool` CHANGE `url` `url` TINYBLOB NOT NULL;\r
+ALTER TABLE `{!prefix!}_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
+DROP TABLE IF EXISTS `{!prefix!}_user_links`;\r
+CREATE TABLE `{!prefix!}_user_links` (\r
   `id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,\r
   `stats_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,\r
   `userid` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,\r
@@ -226,14 +226,14 @@ CREATE TABLE `mxchange_user_links` (
   PRIMARY KEY  (`id`)\r
 ) TYPE=MyISAM;\r
 \r
-DROP TABLE IF EXISTS `mxchange_user_stats`;\r
-CREATE TABLE `mxchange_user_stats` (\r
+DROP TABLE IF EXISTS `{!prefix!}_user_stats`;\r
+CREATE TABLE `{!prefix!}_user_stats` (\r
   `id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,\r
   `userid` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,\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
@@ -242,38 +242,33 @@ CREATE TABLE `mxchange_user_stats` (
   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
-\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
+ALTER TABLE `{!prefix!}_user_data` ADD `joined` VARCHAR(10) NOT NULL DEFAULT 0;\r
+ALTER TABLE `{!prefix!}_config` ADD `last_update` VARCHAR(10) NOT NULL DEFAULT 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_config` ADD `profile_lock` BIGINT(20) UNSIGNED 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) UNSIGNED NOT NULL DEFAULT 0;\r
-ALTER TABLE `mxchange_config` ADD `online_timeout` BIGINT(20) UNSIGNED NOT NULL DEFAULT '1800';\r
+INSERT INTO `{!prefix!}_mod_reg` VALUES (NULL,'chk_login','N','N','N','','N',0);\r
+ALTER TABLE `{!prefix!}_pool` MODIFY `data_type` ENUM('TEMP','SEND','NEW','ADMIN','ACTIVE') NOT NULL DEFAULT 'TEMP';\r
+ALTER TABLE `{!prefix!}_config` ADD `unconfirmed` BIGINT(20) UNSIGNED NOT NULL DEFAULT '100';\r
+ALTER TABLE `{!prefix!}_config` ADD `profile_lock` BIGINT(20) UNSIGNED NOT NULL DEFAULT '86400';\r
+ALTER TABLE `{!prefix!}_user_data` ADD `last_update` VARCHAR(10) NOT NULL DEFAULT 0;\r
+ALTER TABLE `{!prefix!}_refbanner` ADD `clicks` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0;\r
+ALTER TABLE `{!prefix!}_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_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
-ALTER TABLE `mxchange_config` ADD `resend_profile_update` BIGINT(20) UNSIGNED NOT NULL DEFAULT '172800';\r
+ALTER TABLE `{!prefix!}_config` ADD `mad_timestamp` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0;\r
+ALTER TABLE `{!prefix!}_config` ADD `mad_count` BIGINT(20) UNSIGNED NOT NULL;\r
+ALTER TABLE `{!prefix!}_config` ADD `profile_update` BIGINT(20) UNSIGNED NOT NULL DEFAULT '15768000';\r
+ALTER TABLE `{!prefix!}_config` ADD `send_prof_update` ENUM('Y','N') NOT NULL DEFAULT 'Y';\r
+ALTER TABLE `{!prefix!}_config` ADD `resend_profile_update` BIGINT(20) UNSIGNED 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 `{!prefix!}_user_data` ADD `last_profile_sent` VARCHAR(10) NOT NULL DEFAULT 0;\r
+ALTER TABLE `{!prefix!}_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 `{!prefix!}_config` ADD `patch_level` VARCHAR(100) NOT NULL DEFAULT '78';\r
+ALTER TABLE `{!prefix!}_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 `{!prefix!}_admins` ADD `email` VARCHAR(255) NOT NULL;\r
 \r
-DROP TABLE IF EXISTS `mxchange_task_system`;\r
-CREATE TABLE `mxchange_task_system` (\r
+DROP TABLE IF EXISTS `{!prefix!}_task_system`;\r
+CREATE TABLE `{!prefix!}_task_system` (\r
   `id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,\r
   `assigned_admin` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,\r
   `userid` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,\r
@@ -286,60 +281,57 @@ CREATE TABLE `mxchange_task_system` (
   PRIMARY KEY  (`id`)\r
 ) TYPE=MyISAM;\r
 \r
-ALTER TABLE `mxchange_pool` ADD INDEX (`sender`);\r
-ALTER TABLE `mxchange_pool` ADD INDEX (`payment_id`);\r
-ALTER TABLE `mxchange_pool` ADD INDEX (`cat_id`);\r
-ALTER TABLE `mxchange_refsystem` ADD INDEX (`userid`);\r
-ALTER TABLE `mxchange_task_system` ADD INDEX (`assigned_admin`);\r
-ALTER TABLE `mxchange_task_system` ADD INDEX (`userid`);\r
-ALTER TABLE `mxchange_user_cats` ADD INDEX (`userid`);\r
-ALTER TABLE `mxchange_user_cats` ADD INDEX (`cat_id`);\r
-ALTER TABLE `mxchange_user_data` ADD INDEX (`refid`);\r
-ALTER TABLE `mxchange_user_links` ADD INDEX (`userid`);\r
-ALTER TABLE `mxchange_user_links` ADD INDEX (`stats_id`);\r
-ALTER TABLE `mxchange_user_points` ADD INDEX (`userid`);\r
-ALTER TABLE `mxchange_user_stats` ADD INDEX (`userid`);\r
-ALTER TABLE `mxchange_user_stats` ADD INDEX (`cat_id`);\r
-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(20) UNSIGNED NOT NULL;\r
-ALTER TABLE `mxchange_config` ADD `code_length` TINYINT(3) UNSIGNED 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) UNSIGNED NOT NULL DEFAULT 5;\r
-ALTER TABLE `mxchange_user_data` ADD `ref_payout` TINYINT(3) UNSIGNED NOT NULL DEFAULT 0;\r
-ALTER TABLE `mxchange_user_points` ADD `locked_points` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0;\r
-\r
-DROP TABLE IF EXISTS `mxchange_extensions`;\r
-CREATE TABLE `mxchange_extensions` (\r
+ALTER TABLE `{!prefix!}_pool` ADD INDEX (`sender`);\r
+ALTER TABLE `{!prefix!}_pool` ADD INDEX (`payment_id`);\r
+ALTER TABLE `{!prefix!}_pool` ADD INDEX (`cat_id`);\r
+ALTER TABLE `{!prefix!}_refsystem` ADD INDEX (`userid`);\r
+ALTER TABLE `{!prefix!}_task_system` ADD INDEX (`assigned_admin`);\r
+ALTER TABLE `{!prefix!}_task_system` ADD INDEX (`userid`);\r
+ALTER TABLE `{!prefix!}_user_cats` ADD INDEX (`userid`);\r
+ALTER TABLE `{!prefix!}_user_cats` ADD INDEX (`cat_id`);\r
+ALTER TABLE `{!prefix!}_user_data` ADD INDEX (`refid`);\r
+ALTER TABLE `{!prefix!}_user_links` ADD INDEX (`userid`);\r
+ALTER TABLE `{!prefix!}_user_links` ADD INDEX (`stats_id`);\r
+ALTER TABLE `{!prefix!}_user_points` ADD INDEX (`userid`);\r
+ALTER TABLE `{!prefix!}_user_stats` ADD INDEX (`userid`);\r
+ALTER TABLE `{!prefix!}_user_stats` ADD INDEX (`cat_id`);\r
+ALTER TABLE `{!prefix!}_user_stats` ADD INDEX (`payment_id`);\r
+ALTER TABLE `{!prefix!}_user_stats` ADD INDEX (`pool_id`);\r
+\r
+ALTER TABLE `{!prefix!}_user_stats` ADD `clicks` BIGINT(20) UNSIGNED NOT NULL;\r
+ALTER TABLE `{!prefix!}_config` ADD `code_length` TINYINT(3) UNSIGNED NOT NULL DEFAULT 5;\r
+ALTER TABLE `{!prefix!}_config` ADD `guest_stats` ENUM('MEMBERS','MODULES','INACTIVE') NOT NULL DEFAULT 'MEMBERS';\r
+ALTER TABLE `{!prefix!}_config` ADD `ref_payout` TINYINT(3) UNSIGNED NOT NULL DEFAULT 5;\r
+ALTER TABLE `{!prefix!}_user_data` ADD `ref_payout` TINYINT(3) UNSIGNED NOT NULL DEFAULT 0;\r
+ALTER TABLE `{!prefix!}_user_points` ADD `locked_points` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0;\r
+\r
+DROP TABLE IF EXISTS `{!prefix!}_extensions`;\r
+CREATE TABLE `{!prefix!}_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
 ) TYPE=MyISAM;\r
 \r
-DROP TABLE IF EXISTS `mxchange_jackpot`;\r
-CREATE TABLE `mxchange_jackpot` (\r
+DROP TABLE IF EXISTS `{!prefix!}_jackpot`;\r
+CREATE TABLE `{!prefix!}_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
-ALTER TABLE `mxchange_config` ADD `activate_xchange` BIGINT(20) UNSIGNED 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) UNSIGNED 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('Y','N') 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 `{!prefix!}_config` ADD `activate_xchange` BIGINT(20) UNSIGNED NOT NULL DEFAULT 100;\r
+ALTER TABLE `{!prefix!}_config` ADD `order_multi_page` ENUM('Y','N') NOT NULL DEFAULT 'Y';\r
+ALTER TABLE `{!prefix!}_config` ADD `display_refid` ENUM('Y','N') NOT NULL DEFAULT 'Y';\r
+ALTER TABLE `{!prefix!}_config` ADD `ip_timeout` BIGINT(20) UNSIGNED NOT NULL DEFAULT 86400;\r
+ALTER TABLE `{!prefix!}_pool` ADD `zip` VARCHAR(6) NOT NULL DEFAULT '';\r
+\r
+ALTER TABLE `{!prefix!}_task_system` CHANGE `task_type` `task_type` VARCHAR(255)  NOT NULL DEFAULT 'FIRST_USER';\r
+ALTER TABLE `{!prefix!}_user_data` MODIFY `zip` VARCHAR(6) NOT NULL DEFAULT '';\r
+ALTER TABLE `{!prefix!}_user_data` MODIFY `last_module` VARCHAR(255) NOT NULL DEFAULT '';\r
+ALTER TABLE `{!prefix!}_config` ADD `allow_direct_pay` ENUM('Y','N') NOT NULL DEFAULT 'N';\r
+ALTER TABLE `{!prefix!}_user_data` MODIFY `last_profile_sent` VARCHAR(10)  NOT NULL DEFAULT 0;\r
+ALTER TABLE `{!prefix!}_user_data` MODIFY `last_update` VARCHAR(10)  NOT NULL DEFAULT 0;\r
+ALTER TABLE `{!prefix!}_user_data` MODIFY `joined` VARCHAR(10)  NOT NULL DEFAULT 0;\r
+ALTER TABLE `{!prefix!}_user_data` MODIFY `last_online` VARCHAR(10)  NOT NULL DEFAULT 0;\r