From: Roland Häder Date: Tue, 28 Jun 2011 07:55:01 +0000 (+0000) Subject: Always change column name X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=500f1a8d2913512f1f5621c2a0320ad81f5133a1;p=mailer.git Always change column name --- diff --git a/DOCS/TODOs.txt b/DOCS/TODOs.txt index ffcbdd43c3..a849c94cac 100644 --- a/DOCS/TODOs.txt +++ b/DOCS/TODOs.txt @@ -42,7 +42,7 @@ ./inc/extensions/ext-yoomedia.php:121: // @TODO Can this be moved into a database table? ./inc/extensions/ext-yoomedia.php:54:// @TODO Only deprecated when 'ext-network' is ready! setExtensionDeprecated('Y'); ./inc/extensions-functions.php:155: // @TODO Do we still need this? setExtensionUpdateNotes(''); -./inc/extensions-functions.php:1939:// @TODO This should be rewrittten to allow, more development states, e.g. 'planing','alpha','beta','beta2','stable' +./inc/extensions-functions.php:1933:// @TODO This should be rewrittten to allow, more development states, e.g. 'planing','alpha','beta','beta2','stable' ./inc/extensions-functions.php:437:// @TODO Change from ext_id to ext_name (not just even the variable! ;-) ) ./inc/extensions-functions.php:567: // @TODO Extension is loaded, what next? ./inc/filter/bonus_filter.php:55: // @TODO This query isn't right, it will only update if the user was for a longer time away! diff --git a/inc/extensions-functions.php b/inc/extensions-functions.php index 9228cf4f42..9aca9cf414 100644 --- a/inc/extensions-functions.php +++ b/inc/extensions-functions.php @@ -1924,14 +1924,8 @@ function addConfigDropSql ($columnName) { // Change configuration entry for actual extension function addConfigChangeSql ($oldColumnName, $newColumnName, $columnSql) { - // Is the old column there? - if (isSqlTableColumnFound('{?_MYSQL_PREFIX?}_config', $oldColumnName)) { - // Found so add it - addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_config` CHANGE `' . $oldColumnName . '` `' . $newColumnName . '` ' . $columnSql); - } else { - // Add debug line, debug_report_bug() would cause some extenion updates fail - logDebugMessage(__FUNCTION__, __LINE__, 'Configuration entry ' . $oldColumnName . ' not found.'); - } + // Add the SQL statement + addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_config` CHANGE `' . $oldColumnName . '` `' . $newColumnName . '` ' . $columnSql); } // Enables/disables productive mode for current extension (used only while diff --git a/templates/de/html/admin/admin_config_beg.tpl b/templates/de/html/admin/admin_config_beg.tpl index 9ce7524fa9..d7957cad00 100644 --- a/templates/de/html/admin/admin_config_beg.tpl +++ b/templates/de/html/admin/admin_config_beg.tpl @@ -11,7 +11,7 @@ {--ADMIN_BEG_POINTS--}: - + @@ -19,7 +19,7 @@ {--ADMIN_BEG_POINTS_MAX--}: - + @@ -155,7 +155,7 @@ {--ADMIN_BEG_NOTIFY_BONUS--} - +