update function not accounting for db table prefix

michael_kirk - December 13, 2007 - 22:57
Project:Fullname field for CCK
Version:5.x-1.2
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:duplicate
Description

If you are using a table prefix (eg. for multi-site db sharing) The update function doesn't work. The update attempts to modify content types in the table without apending the db-prefix to the table name. (ie. its trying to change databasename.content_table rather than the correct databasename.PREFIX_content_table.)

Ive never written a module, but in looking at some other database upgrade scripts, people are using more abstract functions like "content_alter_db_field" rather than editing the database directly.

#1

michael_kirk - December 13, 2007 - 23:15
Status:active» duplicate

sorry, don't know how i missed that it was duplicate

 
 

Drupal is a registered trademark of Dries Buytaert.