update_6001 has invalid use of db_add_field

nicholasThompson - July 8, 2009 - 14:03
Project:Custom Breadcrumbs
Version:6.x-2.x-dev
Component:custom_breadcrumbs
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

I just ran the update from a 5.x install to 6.x and found the 6001 update does not add the set_active_menu column correctly...

The fix is to change

<?php
db_add_field
($ret, 'custom_breadcrumb', 'set_active_menu', 'int', array('default' => 1, 'NOT NULL' => TRUE));
?>

to
<?php
db_add_field
($ret, 'custom_breadcrumb', 'set_active_menu', array('type' => 'int', 'default' => 1, 'not null' => TRUE));
?>

#1

MGN - July 8, 2009 - 15:01

Good catch! This fix will be incorporated in the next commit.

#2

MGN - July 10, 2009 - 00:53
Status:needs review» fixed

#3

System Message - July 24, 2009 - 01:00
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.