[eluser]Bryan Zera[/eluser]
I'm creating an ENUM field with dbforge:
Code:
$field['enum_field'] = array(
'type' => 'ENUM',
'contstraint' => "'a','b','c'",
'default'=> "a"
);
$this->dbforge->add_field($field);
Assigning the 'constraint' array key when creating database types like INT and VARCHAR put the constraint in parenthesis after the SQL type declaration, but when using ENUM as the type, it ignores the constraint. How do I set values for my ENUM fields with dbforge?