From: Roland Häder Date: Thu, 28 Jul 2011 21:41:23 +0000 (+0000) Subject: modules.cache now depends in ext-mods, some SQLs improved X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7d61cd8a78e4f9afc42888759523e8069e75102a;p=mailer.git modules.cache now depends in ext-mods, some SQLs improved --- diff --git a/inc/extensions/ext-payout.php b/inc/extensions/ext-payout.php index 7994ab2d1c..963246ade9 100644 --- a/inc/extensions/ext-payout.php +++ b/inc/extensions/ext-payout.php @@ -127,7 +127,7 @@ PRIMARY KEY (`id`)", break; case '0.1.6': // SQL queries for v0.1.6 - addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_payout_types` CHANGE pass_enc pass_enc ENUM('md5','base64','xxx') NOT NULL DEFAULT 'xxx'"); + addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_payout_types` CHANGE `pass_enc` `pass_enc` ENUM('md5','base64','xxx') NOT NULL DEFAULT 'xxx'"); break; case '0.1.8': // SQL queries for v0.1.8 @@ -146,8 +146,8 @@ PRIMARY KEY (`id`)", break; case '0.2.1': // SQL queries for v0.2.1 - addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_payouts` CHANGE payout_total payout_total FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000"); - addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_payout_types` CHANGE rate rate FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000"); + addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_payouts` CHANGE `payout_total` `payout_total` FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000"); + addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_payout_types` CHANGE `rate` `rate` FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000"); // Update notes (these will be set as task text!) setExtensionUpdateNotes("Problem mit Speicherung der Einstellungen beseitigt."); diff --git a/inc/loader/load-modules.php b/inc/loader/load-modules.php index fa68904629..4ace00bb02 100644 --- a/inc/loader/load-modules.php +++ b/inc/loader/load-modules.php @@ -117,6 +117,7 @@ ORDER BY SQL_FREERESULT($result); // Close the cache + $GLOBALS['cache_instance']->storeExtensionVersion('mods'); $GLOBALS['cache_instance']->storeExtensionVersion('sql_patches'); $GLOBALS['cache_instance']->finalize(); }