src/ORM/Connect/MySQLSchemaManager.php
public function renameTable($oldTableName, $newTableName)
    {
        if (!$this->hasTable($oldTableName)) {
            throw new LogicException('Table ' . $oldTableName . ' does not exist.');
        }

        return $this->query("ALTER TABLE \"$oldTableName\" RENAME \"$newTableName\"");
    }
public function renameTable($oldTableName, $newTableName)
    {
        if (!$this->hasTable($oldTableName)) {
            throw new LogicException('Table ' . $oldTableName . ' does not exist.');
        }

        return $this->query("ALTER TABLE \"$oldTableName\" RENAME \"$newTableName\"");
    }
public function renameTable ( $ oldTableName , $ newTableName ) { if ( ! $ this -> hasTable ( $ oldTableName ) ) { throw new LogicException ( 'Table ' . $ oldTableName . ' does not exist.' ) ; } return $ this -> query ( "ALTER TABLE \"$oldTableName\" RENAME \"$newTableName\"" ) ; }
Renames a table

@param string $oldTableName
@param string $newTableName
@throws LogicException
@return Query
Renames a table