Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Component/s: Documentation
-
Labels:None
-
Environment:Doctrine 1.2, with Symfony 1.4 r32415
Description
It appears that the documentation for changeColumn for migrations is wrong - the fourth argument seems to be the length, and the fifth argument is the array of options.
// This Fails:
$this->changeColumn('table_name', 'column_name', 'tinyint', $options);
// This Works:
$this->changeColumn('table_name', 'column_name', 'tinyint', 3, $options);
Trying the former option with decimals caused the error:
"ALTER TABLE uza_population_size CHANGE square_miles square_miles DECIMAL(Array, 2)"