From 0d5cb88dadb77336d879a05d57aa2ab0e83916ac Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Fri, 12 Dec 2008 14:40:09 -0500 Subject: [PATCH] alternate rename table syntax (http://www.flamingspork.com/blog/2008/12/11/stewart-learns-more-sql-oddities-or-wtfs/) --- framework/Db/lib/Horde/Db/Adapter/Mysql/Schema.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } /** -- 2.11.0