X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fextensions-functions.php;h=9aca9cf4141a34308c0e1864be12ac31ec312c21;hp=9228cf4f42c2b7fd99bd6040ac28d6f4a09e4cb2;hb=500f1a8d2913512f1f5621c2a0320ad81f5133a1;hpb=0533bba499e23b91209b91f40737058a36f40ffe 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