From: Chuck Hagenbuch Date: Fri, 12 Dec 2008 19:40:09 +0000 (-0500) Subject: alternate rename table syntax (http://www.flamingspork.com/blog/2008/12/11/stewart... X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=0d5cb88dadb77336d879a05d57aa2ab0e83916ac;p=horde.git alternate rename table syntax (flamingspork.com/blog/2008/12/11/stewart-learns-more-sql-oddities-or-wtfs/) --- diff --git a/framework/Db/lib/Horde/Db/Adapter/Mysql/Schema.php b/framework/Db/lib/Horde/Db/Adapter/Mysql/Schema.php index 690ac3a72..12b1d1d68 100644 --- a/framework/Db/lib/Horde/Db/Adapter/Mysql/Schema.php +++ b/framework/Db/lib/Horde/Db/Adapter/Mysql/Schema.php @@ -247,7 +247,7 @@ class Horde_Db_Adapter_Mysql_Schema extends Horde_Db_Adapter_Abstract_Schema { $this->_clearTableCache($name); - return $this->execute('RENAME TABLE '.$this->quoteTableName($name).' TO '.$this->quoteTableName($newName)); + return $this->execute('ALTER TABLE '.$this->quoteTableName($name).' RENAME '.$this->quoteTableName($newName)); } /**