]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-birthday.php
Hotfix
[mailer.git] / inc / extensions / ext-birthday.php
index 6d408decc21809a9295d3b6ef3972ade4c35da75..15fafc3597fc5a5401a2c7db5985172a8c66f931 100644 (file)
@@ -17,7 +17,7 @@
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
- * For more information visit: http://www.mxchange.org                  *
+ * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
  * it under the terms of the GNU General Public License as published by *
@@ -84,7 +84,7 @@ switch (getExtensionMode()) {
 `points` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 `chk_value` VARCHAR(255) NOT NULL DEFAULT '',
 PRIMARY KEY (`id`),
-KEY (`userid`)",
+INDEX (`userid`)",
                                        'Pending birthday codes');
 
                                // Admin menu
@@ -160,7 +160,6 @@ KEY (`userid`)",
                                break;
 
                        case '0.3.6': // SQL queries for v0.3.6
-                               addConfigAddSql('birthday_mode', "ENUM('DIRECT','REF') NOT NULL DEFAULT 'DIRECT'");
                                addConfigAddSql('birthday_active', "ENUM('Y','N') NOT NULL DEFAULT 'N'");
 
                                // Update notes (these will be set as task text!)
@@ -178,14 +177,23 @@ KEY (`userid`)",
                                break;
 
                        case '0.3.9': // SQL queries for v0.3.9
-                               addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_user_data`
-CHANGE `birth_day` `birth_day` SMALLINT(2) UNSIGNED ZEROFILL NOT NULL DEFAULT 01,
-CHANGE `birth_month` `birth_month` SMALLINT(2) UNSIGNED ZEROFILL NOT NULL DEFAULT 01,
-CHANGE `birth_year` `birth_year` SMALLINT(4) UNSIGNED ZEROFILL NOT NULL DEFAULT 1970');
+                               addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` CHANGE `birth_day` `birth_day` SMALLINT(2) UNSIGNED ZEROFILL NOT NULL DEFAULT 01');
+                               addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` CHANGE `birth_month` `birth_month` SMALLINT(2) UNSIGNED ZEROFILL NOT NULL DEFAULT 01');
+                               addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` CHANGE `birth_year` `birth_year` SMALLINT(4) UNSIGNED ZEROFILL NOT NULL DEFAULT 1970');
+
+                               // This update depends on ext-user
+                               addExtensionDependency('user');
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Datenbankspalten umgestellt auf SMALLINT() UNSIGNED ZEROFILL.");
                                break;
+
+                       case '0.4.0': // SQL queries for v0.4.0
+                               addConfigDropSql('birthday_mode');
+
+                               // Update notes (these will be set as task text!)
+                               setExtensionUpdateNotes("Dies brauchen wir nicht mehr.");
+                               break;
                } // END - if
                break;