[wp-hackers] WPDB does not seem to support RENAME TABLE query

Paul Menard paul at codehooligans.com
Sun Sep 22 20:12:04 UTC 2013


On Sep 22, 2013, at 2:24 PM, Andrew Nacin <wp at andrewnacin.com> wrote:

> I've honestly never seen someone need to use wpdb to rename a table at
> runtime. Nothing wrong with wp-db.php being patched to support this. That
> said, this should work: ALTER TABLE old_name RENAME new_name;
> 
> Nacin

Thanks Nacin, yeah, I guess that is one way to get past the issue. 


More information about the wp-hackers mailing list