src/Helper/TableManipulation.php
public static function renameTable($strTableName, $strNewTableName)
    {
        self::checkTableExists($strTableName);
        self::checkTableDoesNotExist($strNewTableName);

        self::getDB()->execute(sprintf(self::STATEMENT_RENAME_TABLE, $strTableName, $strNewTableName));
    }
public static function renameTable($strTableName, $strNewTableName)
    {
        self::checkTableExists($strTableName);
        self::checkTableDoesNotExist($strNewTableName);

        self::getDB()->execute(sprintf(self::STATEMENT_RENAME_TABLE, $strTableName, $strNewTableName));
    }
Renames a table with the given name to the given new name.

@param string $strTableName    The name of the table to rename.

@param string $strNewTableName The name to which the table shall be renamed to.

@return void

@throws \Exception If an invalid table name has been passed.