[development] Writing updates for minor releases

Derek Wright drupal at dwwright.net
Wed Oct 4 07:54:42 UTC 2006


On Oct 4, 2006, at 12:43 AM, Karoly Negyesi wrote:

> To achieve this, use DROP IF EXSITS for indexes (both databases),  
> in the unlikely case you are adding a field, check for its  
> existence first through SELECT * FROM, db_fetch_array, isset.  
> ALTERs need no special taking care of.

in the unlikely case you are adding a whole new table, can check if  
the table exists in 5.x and beyond using db_table_exists('foo').

enjoy,
-dww





More information about the development mailing list