moved for svn-git switch
[mailer.git] / inc / extensions / sql_patches / mode-update.php
index c362157f383f10c8d9ea1e84374810ea59fab517..fe3a7b12b378345e96f538263061d25463f1bd62 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -50,14 +50,12 @@ if (!defined('__SECURITY')) {
                                break;
 
                        case '0.0.2': // SQL queries for v0.0.2
-                               addConfigChangeSql('auto_purge', 'auto_purge', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT ' . (getOneDay()*14));
-
                                // Update notes (these will be set as task text!)
-                               setExtensionUpdateNotes("In der Tabelle <strong>{?_MYSQL_PREFIX?}_config</strong> musste die Spalte <strong>auto_purge</strong> (autom. L&ouml;schen von Best&auml;tigungsmails angepasst werden (war auf dem Testsystem auf TINYINT(4) gesetzt.)");
+                               setExtensionUpdateNotes("Nicht mehr verwendetes Update, da nach <strong>ext-autopurge</strong> verschoben.");
                                break;
 
                        case '0.0.3': // SQL queries for v0.0.3
-                               addConfigAddSql('points_word', "VARCHAR(255) NOT NULL DEFAULT '{OPEN_TEMPLATE}DEFAULT_POINTS{CLOSE_TEMPLATE}'");
+                               addConfigAddSql('points_word', "VARCHAR(255) NOT NULL DEFAULT '{OPEN_LANGUAGE}DEFAULT_POINTS{CLOSE_LANGUAGE}'");
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Das Wort &quot;Punkte&quot; kann nun per Datenbank ge&auml;ndert werden. Damit k&ouml;nnen anstelle des Wortes Punkte auch Klammlose, Wernis, Primera und auch &euro; geschrieben werden.");
@@ -445,6 +443,7 @@ INDEX (`admin_id`)",
                                break;
 
                        case '0.4.5': // SQL queries for v0.4.5
+                               addConfigAddSql('last_daily'  , 'TINYINT(2) UNSIGNED ZEROFILL NOT NULL DEFAULT 00');
                                addConfigAddSql('last_weekly' , 'TINYINT(2) UNSIGNED ZEROFILL NOT NULL DEFAULT 00');
                                addConfigAddSql('last_monthly', 'TINYINT(2) UNSIGNED ZEROFILL NOT NULL DEFAULT 00');
 
@@ -504,10 +503,8 @@ INDEX (`admin_id`)",
                                break;
 
                        case '0.5.4': // SQL queries for v0.5.4
-                               addMemberMenuSql('main', 'reflist', 'Ref-&Uuml;bersicht', 5);
-
                                // Update notes (these will be set as task text!)
-                               setExtensionUpdateNotes("Ref-&Uuml;bersicht eingebaut. Diese h&auml;ngt von der Erweiterung <strong>refback</strong> ab.");
+                               setExtensionUpdateNotes("Dieses Update wurde nach ext-refback verschoben.");
                                break;
 
                        case '0.5.5': // SQL queries for v0.5.5
@@ -696,8 +693,8 @@ INDEX (`ip`)",
                                break;
 
                        case '0.7.6': // SQL queries for v0.7.6
-                               addConfigChangeSql('last_monthly', 'last_monthly', 'TINYINT(2) UNSIGNED ZEROFILL NOT NULL DEFAULT 00');
-                               addConfigChangeSql('last_weekly' , 'last_weekly' , 'TINYINT(2) UNSIGNED ZEROFILL NOT NULL DEFAULT 00');
+                               addConfigChangeSql('last_month', 'last_monthly', 'TINYINT(2) UNSIGNED ZEROFILL NOT NULL DEFAULT 00');
+                               addConfigChangeSql('last_week' , 'last_weekly' , 'TINYINT(2) UNSIGNED ZEROFILL NOT NULL DEFAULT 00');
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Spaltentyp fuer kleine Zahlen sollten auch z.B. TINYINT sein.");
@@ -839,9 +836,7 @@ INDEX (`history_last_used` DESC)",
 
                                // Register points data
                                registerExtensionPointsData('admin_add_single', 'points', 'LOCKED', 'DIRECT');
-                               registerExtensionPointsData('admin_add_single_ref', 'points', 'LOCKED', 'DIRECT');
                                registerExtensionPointsData('admin_add_all', 'points', 'LOCKED', 'DIRECT');
-                               registerExtensionPointsData('admin_add_all_ref', 'points', 'LOCKED', 'DIRECT');
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Filter zum Initialisieren von ext-sql_patches registriert und Eintr&auml;ge in <strong>{?_MYSQL_PREFIX?}_points_data</strong> hinzugef&uuml;gt.");
@@ -928,6 +923,33 @@ PRIMARY KEY (`server_name_id`)
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Spalten umbenannt, damit die Namen (Verwendung) nun eindeutiger sind.");
                                break;
+
+                       case '0.9.9': // SQL queries for v0.9.9
+                               addConfigAddSql('last_yearly', 'SMALLINT(4) UNSIGNED ZEROFILL NOT NULL DEFAULT ' . getYear());
+                               addConfigChangeSql('pass_len', 'min_password_length', 'TINYINT(2) UNSIGNED NOT NULL DEFAULT 5');
+                               addConfigAddSql('min_password_score', 'TINYINT(2) UNSIGNED NOT NULL DEFAULT 3');
+                               addModuleSql('api', '{OPEN_LANGUAGE}MODULE_GENERIC_API_TITLE{CLOSE_LANGUAGE}', 'Y', 'Y', 'N', 'N');
+
+                               // Make this depending on ext-mods
+                               addExtensionDependency('mods');
+
+                               // Update notes (these will be set as task text!)
+                               setExtensionUpdateNotes("Jahres-Reset + generelles API-Modul hinzugef&uuml;gt.");
+                               break;
+
+                       case '1.0.0': // SQL queries for v1.0.0
+                               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_member_menu` SET `action`='account' WHERE `what`='categories'");
+
+                               // Update notes (these will be set as task text!)
+                               setExtensionUpdateNotes("Auswahl im Mitgliedsbereich verschoben nach &quot;Ihr Account&quot;.");
+                               break;
+
+                       case '1.0.1': // SQL queries for v1.0.1
+                               addModuleSql('ajax', 'AJAX', 'N', 'Y', 'N', 'N');;
+
+                               // Update notes (these will be set as task text!)
+                               setExtensionUpdateNotes("AJAX-Modul hinzugef&uuml;gt.");
+                               break;
                } // END - switch
 
 // [EOF]