+ case 'update': // Update an extension
+ switch (getCurrentExtensionVersion()) {
+ case '0.0.1': // SQL queries for v0.0.1
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Berechnung der Gesamt-{?POINTS?} korregiert.");
+ break;
+
+ case '0.0.2': // SQL queries for v0.0.2
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Daten des Scriptes mit eingebunden.");
+ break;
+
+ case '0.0.3': // SQL queries for v0.0.3
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Sicherheitsupdate: SQL-Anweisungen geschützt.");
+ break;
+
+ case '0.0.4': // SQL queries for v0.0.4
+ // SQL commands to run
+ addDropTableSql('mediadata');
+ addCreateTableSql('mediadata', "
+`media_key` VARCHAR(255) NOT NULL DEFAULT '',
+`media_value` VARCHAR(255) NOT NULL DEFAULT '',
+PRIMARY KEY (`media_key`)",
+ 'Media data key->value');
+
+ // Add auto-check file
+ addIncludeToPool('extension', 'inc/gen_mediadata.php');
+
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Teile der Mediendaten werden in seperater Tabelle gesichert. Bitte beachten Sie, dass dieses Update nur Daten des <strong>aktuellen</strong> Zustandes berücksichtigen kann und <strong>nicht</strong> bereits gelöschter Mitglieder.");
+ break;
+
+ case '0.0.5': // SQL queries for v0.0.5
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("if-Anweisungen auf Funktion <strong>empty()</strong> umgestellt.");
+ break;
+
+ case '0.0.6': // SQL queries for v0.0.6
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Mediendaten mussten komplett regeneriert werden.");
+ break;
+
+ case '0.0.7': // SQL queries for v0.0.7
+ addConfigAddSql('mt_start', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 0');
+ addConfigAddSql('mt_stage', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 500');
+ addAdminMenuSql('setup', 'config_mediadata', 'Mediendaten', 'Stellen Sie allgemeine Einstellungen zu den Mediendaten ein.', 10);
+
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Start des {?mt_word2?} und Anzahl Anmeldungen aufgenommen. (Task #13)<br />
+Bitte stellen Sie diesen derzeit manuell unter <a href=\"%url=modules.php?module=admin&what=config_mediadata%}\">Einstellungen-Medidata</a> selber einstellen.");
+ break;
+
+ case '0.0.8': // SQL queries for v0.0.8
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Fehlerhinweis bei deaktivierter Erweiterung verbessert.");
+ break;
+
+ case '0.0.9': // SQL queries for v0.0.9
+ addGuestMenuSql('main', 'mediadata', 'Mediendaten', 3);
+
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Menüpunkt wird durch diese Erweiterung generiert.");
+ break;
+ } // END - switch