]> git.mxchange.org Git - mailer.git/commitdiff
Dependency birthday->user added
authorRoland Häder <roland@mxchange.org>
Thu, 28 Jul 2011 21:17:05 +0000 (21:17 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 28 Jul 2011 21:17:05 +0000 (21:17 +0000)
inc/extensions/ext-birthday.php

index e2f2af4a72459c964aaf821db27ba1f765457520..d6db65aced6e7097ac0a4b89bf729fd82c735292 100644 (file)
@@ -177,10 +177,12 @@ INDEX (`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.");