Always change column name
[mailer.git] / inc / extensions-functions.php
index 9228cf4f42c2b7fd99bd6040ac28d6f4a09e4cb2..9aca9cf4141a34308c0e1864be12ac31ec312c21 100644 (file)
@@ -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