Export to GitHub

ruckusing - issue #7

Unable to specify false default value for a boolean column


Posted on Nov 5, 2008 by Happy Panda

$t->column('active', 'boolean', array('default' => false));

produces:

(class.MySQLAdapter.php:190) Error executing 'query' with: CREATE TABLE user ( id int(11) UNSIGNED auto_increment PRIMARY KEY, first_name varchar(255), last_name varchar(255), email varchar(255), salt varchar(40), password varchar(40), creation_date datetime, last_login_date datetime, active tinyint(1) DEFAULT '' ) ;

Reason: Invalid default value for 'active'

potential patch attached

Attachments

Comment #1

Posted on Nov 5, 2008 by Swift Giraffe

Thanks for the patch, implemented into trunk.

Status: Fixed

Labels:
Type-Defect Priority-Medium