Rewrote some parts:
[mailer.git] / install / tables.sql
index 6bb6c27f2b0653531dd5244d9dfbd11051c0dba6..9ceee334fcdd2bed080c5eb8541e957dcf181103 100644 (file)
@@ -30,48 +30,29 @@ CREATE TABLE `{?_MYSQL_PREFIX?}_cats` (
 
 DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_config`;
 CREATE TABLE `{?_MYSQL_PREFIX?}_config` (
-  `config` tinyint(1) NOT NULL DEFAULT 0,
-  `pass_len` TINYINT(3) UNSIGNED NOT NULL DEFAULT 5,
+  `config` TINYINT(1) NOT NULL DEFAULT 0,
+  `min_password_length` TINYINT(3) UNSIGNED NOT NULL DEFAULT 5,
   `points_register` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
   `points_ref` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
-  `least_cats` TINYINT(3) UNSIGNED NOT NULL DEFAULT 5,
-  `check_double_email` ENUM('Y','N') NOT NULL DEFAULT 'Y',
-  `admin_notify` ENUM('Y','N') NOT NULL DEFAULT 'Y',
   `url_tlock` BIGINT(20) UNSIGNED NOT NULL DEFAULT 86400,
-  `max_tlength` BIGINT(20) UNSIGNED NOT NULL DEFAULT 1000,
-  `autosend_active` ENUM('Y','N') NOT NULL DEFAULT 'N',
-  `max_send` TINYINT(3) UNSIGNED NOT NULL DEFAULT 100,
-  `url_blacklist` ENUM('Y','N') NOT NULL DEFAULT 'Y',
-  `auto_purge` TINYINT(3) UNSIGNED NOT NULL DEFAULT 14,
-  `auto_purge_active` ENUM('Y','N') NOT NULL DEFAULT 'Y',
-  `last_update` VARCHAR(10) NOT NULL DEFAULT 0,
-  `unconfirmed` BIGINT(20) UNSIGNED NOT NULL DEFAULT 100,
-  `profile_lock` BIGINT(20) UNSIGNED NOT NULL DEFAULT 86400,
   `online_timeout` BIGINT(20) UNSIGNED NOT NULL DEFAULT 1800,
   `mad_timestamp` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
   `mad_count` BIGINT(20) UNSIGNED NOT NULL,
-  `profile_update` BIGINT(20) UNSIGNED NOT NULL DEFAULT 15768000,
-  `send_prof_update` ENUM('Y','N') NOT NULL DEFAULT 'Y',
-  `resend_profile_update` BIGINT(20) UNSIGNED NOT NULL DEFAULT 172800,
   `patch_level` VARCHAR(100) NOT NULL DEFAULT '0',
-  `patch_ctime` VARCHAR(10) NOT NULL DEFAULT 0,
+  `patch_ctime` VARCHAR(10) NOT NULL DEFAULT '0',
   `guest_stats` ENUM('MEMBERS','MODULES','INACTIVE') NOT NULL DEFAULT 'MEMBERS',
   `ref_payout` TINYINT(3) UNSIGNED NOT NULL DEFAULT 5,
-  `activate_xchange` BIGINT(20) UNSIGNED NOT NULL DEFAULT 100,
-  `order_multi_page` ENUM('Y','N') NOT NULL DEFAULT 'Y',
-  `display_refid` ENUM('Y','N') NOT NULL DEFAULT 'Y',
-  `ip_timeout` BIGINT(20) UNSIGNED NOT NULL DEFAULT 86400,
   `allow_direct_pay` ENUM('Y','N') NOT NULL DEFAULT 'N',
   PRIMARY KEY (`config`)
 ) ENGINE = {?_TABLE_TYPE?} CHARACTER SET utf8 COLLATE utf8_general_ci COMMENT 'Configuration';
 
 DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_extensions`;
 CREATE TABLE `{?_MYSQL_PREFIX?}_extensions` (
-  `ext_id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
+  `id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
   `ext_name` VARCHAR(255) NOT NULL DEFAULT '',
   `ext_active` ENUM('Y','N') NOT NULL DEFAULT 'N',
   `ext_version` VARCHAR(255) NOT NULL DEFAULT 'INVALID',
-  PRIMARY KEY  (`ext_id`)
+  PRIMARY KEY  (`id`)
 ) ENGINE = {?_TABLE_TYPE?} CHARACTER SET utf8 COLLATE utf8_general_ci COMMENT 'Extension registry';
 
 DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_guest_menu`;
@@ -186,7 +167,7 @@ CREATE TABLE `{?_MYSQL_PREFIX?}_task_system` (
   `assigned_admin` BIGINT(20) UNSIGNED NULL DEFAULT NULL,
   `userid` BIGINT(20) UNSIGNED NULL DEFAULT NULL,
   `status` ENUM('NEW','OPEN','SOLVED','CLOSED','DELETED') NOT NULL DEFAULT 'NEW',
-  `task_type` VARCHAR(255)  NOT NULL DEFAULT 'FIRST_USER',
+  `task_type` VARCHAR(255)  NOT NULL DEFAULT 'UNKNOWN',
   `subject` VARCHAR(255) NOT NULL DEFAULT '',
   `text` LONGTEXT NOT NULL,
   `task_created` VARCHAR(10) NOT NULL DEFAULT 0,