alternate rename table syntax (http://www.flamingspork.com/blog/2008/12/11/stewart...
authorChuck Hagenbuch <chuck@horde.org>
Fri, 12 Dec 2008 19:40:09 +0000 (14:40 -0500)
committerChuck Hagenbuch <chuck@horde.org>
Fri, 12 Dec 2008 19:40:09 +0000 (14:40 -0500)
framework/Db/lib/Horde/Db/Adapter/Mysql/Schema.php

index 690ac3a..12b1d1d 100644 (file)
@@ -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));
     }
 
     /**