} // END - if
}
+// Adds a RENAME TABLE stament if 'from' table exist and 'to' table not
+function addRenameTableSql ($fromTable, $toTable) {
+ // Is renaming required?
+ if ((ifSqlTableExists($fromTable)) && (!ifSqlTableExists($toTable))) {
+ // Add it
+ addExtensionSql('RENAME TABLE `{?_MYSQL_PREFIX?}_' . $fromTable . '` TO `{?_MYSQL_PREFIX?}_' . $toTable . '`');
+
+ // Mark both tables
+ $GLOBALS['ifSqlTableExists'][$fromTable] = false;
+ $GLOBALS['ifSqlTableExists'][$toTable] = true;
+ } // END - if
+}
+
// Adds an admin menu to the SQL queue of the menu entry is not found
function addAdminMenuSql ($action, $what, $title, $descr, $sort) {
// Now check if this menu is there