Download & Extend

update_6001 has invalid use of db_add_field

Project:Custom breadcrumbs
Version:6.x-2.x-dev
Component:custom_breadcrumbs
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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));
?>

Comments

#1

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

#2

Status:needs review» fixed

#3

Status:fixed» closed (fixed)

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

nobody click here