The attached patch adds a db_rename function to allow tables to be renamed.
| Comment | File | Size | Author |
|---|---|---|---|
| db_rename.patch | 1.65 KB | drewish |
The attached patch adds a db_rename function to allow tables to be renamed.
| Comment | File | Size | Author |
|---|---|---|---|
| db_rename.patch | 1.65 KB | drewish |
Comments
Comment #1
nedjo+1, this would be a useful addition.
The patch http://drupal.org/node/140860 to get consistent table names in core would use this.
MySQL supports a RENAME TABLE syntax. Is the ALTER TABLE syntax used in the patch equally supported?
Comment #2
drewish commentedgood question. it is supported by both mysql 4.1 and 5.0+. i've found it supported for postgresql versions back to 7.3.
Comment #3
bjaspan commentedThis is a good addition to the API. Tested on MySQL and PostgresQL, works fine.
Comment #4
dries commentedCommitted to CVS HEAD. Thanks.
Comment #5
(not verified) commented