]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-cache.php
Encapsulated adding configuration entries with new wrapper function addConfigAddSql()
[mailer.git] / inc / extensions / ext-cache.php
index 9e8986c3afe60e5e77b14f94efdea7a76a58f920..fd920a839c66da74adc42308f6b1f4244c3560bb 100644 (file)
@@ -121,8 +121,8 @@ switch (getExtensionMode()) {
                                break;
 
                        case '0.0.7': // SQL queries for v0.0.7
                                break;
 
                        case '0.0.7': // SQL queries for v0.0.7
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD db_hits BIGINT(20) UNSIGNED NOT NULL DEFAULT 0");
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD 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!)
                                addAdminMenuSql('stats','cache_stats','DB-Cache','Auf Cache und gesamte Datenbank registrierte Anfragen anzeigen.', 4);
 
                                // Update notes (these will be set as task text!)
@@ -218,7 +218,7 @@ switch (getExtensionMode()) {
                                break;
 
                        case '0.2.3': // SQL queries for v0.2.3
                                break;
 
                        case '0.2.3': // SQL queries for v0.2.3
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD cache_filter ENUM('Y','N') NOT NULL DEFAULT 'Y'");
+                               addConfigAddSql("cache_filter ENUM('Y','N') NOT NULL DEFAULT 'Y'");
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Cachen von Filtern hinzugefügt.");
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Cachen von Filtern hinzugefügt.");