Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.2.2
-
Fix Version/s: None
-
Component/s: Import/Export
-
Labels:None
-
Environment:Mac OS X 10.6, doctrine 1.2, symfony 1.4, postgres 8.4
Description
Doctrine_Migration_Base::changeColumn doesn't change the DB column when using Postgres.
In Doctrine_Export_Pgsql::alterTableSql it checks for an index 'type' in the $field array, but the 'type' index is in $field['definition'], so we never enter there. Furthermore it then tries to get the type declaration with $this->conn->datatype->getTypeDeclaration($field['definition']) but there is no datatype property on the collection.
The attached patch should fix these problems.
hmm .. seems like a refactoring issue with the old MDB2 code. same issue could be in other places too.