-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) NULL DEFAULT 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
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
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(255) NOT NULL DEFAULT '',\r
`what` VARCHAR(255) NULL DEFAULT NULL,\r
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(255) NOT NULL DEFAULT '',\r
`what` VARCHAR(255) NULL DEFAULT NULL,\r
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
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
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
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
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
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
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
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
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
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 `{!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` 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
-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
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_active` ENUM('Y','N') NOT NULL DEFAULT 'N',\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` 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_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