0.0.0 shall be our first version
[mailer.git] / inc / extensions / ext-cache.php
index 8d631beaac3b3a40a788ad75adc64a8dc52c3102..ee324dcf1c81c2b85ba52ae715c474f8e4c831b7 100644 (file)
@@ -44,15 +44,15 @@ if (!defined('__SECURITY')) {
 // Version number
 setThisExtensionVersion('0.2.5');
 
-// Version history array (add more with , '0.1.0' and so on)
-setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0.1.5', '0.1.6', '0.1.7', '0.1.8', '0.1.9', '0.2.0', '0.2.1', '0.2.2', '0.2.3', '0.2.4', '0.2.5'));
+// Version history array (add more with , '0.0.1' and so on)
+setExtensionVersionHistory(array('0.0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0.1.5', '0.1.6', '0.1.7', '0.1.8', '0.1.9', '0.2.0', '0.2.1', '0.2.2', '0.2.3', '0.2.4', '0.2.5'));
 
 // Keep this extension always active!
 setExtensionAlwaysActive('Y');
 
 // Which load mode?
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                break;
 
        case 'remove': // Do stuff when removing extension
@@ -121,8 +121,8 @@ switch (getExtensionMode()) {
                                break;
 
                        case '0.0.7': // SQL queries for v0.0.7
-                               addConfigAddSql('db_hits', "BIGINT(20) UNSIGNED NOT NULL DEFAULT 0");
-                               addConfigAddSql('cache_hits', "BIGINT(20) UNSIGNED NOT NULL DEFAULT 0");
+                               addConfigAddSql('db_hits', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 0');
+                               addConfigAddSql('cache_hits', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 0');
                                addAdminMenuSql('stats','cache_stats','DB-Cache','Auf Cache und gesamte Datenbank registrierte Anfragen anzeigen.', 4);
 
                                // Update notes (these will be set as task text!)
@@ -232,14 +232,14 @@ switch (getExtensionMode()) {
                                addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_admin_menu` WHERE `what`='config_cache' LIMIT 1");
 
                                // Remove config entries
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` DROP `cache_themes`");
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` DROP `cache_admins`");
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` DROP `cache_acls`");
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` DROP `cache_exts`");
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` DROP `cache_config`");
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` DROP `cache_modreg`");
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` DROP `cache_refdepth`");
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` DROP `cache_refsys`");
+                               addConfigDropSql('cache_themes');
+                               addConfigDropSql('cache_admins');
+                               addConfigDropSql('cache_acls');
+                               addConfigDropSql('cache_exts');
+                               addConfigDropSql('cache_config');
+                               addConfigDropSql('cache_modreg');
+                               addConfigDropSql('cache_refdepth');
+                               addConfigDropSql('cache_refsys');
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Der Cache hat keine Konfiguration mehr.");