Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.2.2
-
Fix Version/s: 1.2.4
-
Component/s: Import/Export
-
Labels:None
-
Environment:PostgreSql
Description
The importer doe not look for the max length of string columns.
For example, the task generate-models-db is generating definitions like
$this->hasColumn('code', 'string', null, array(/**/));
instead of
$this->hasColumn('code', 'string', 10, array(/**/));
I created a patch on GitHub: http://github.com/fmntf/doctrine1/tree/DC-713.
Reading from `information_schema` we can also get the string length.
I tried to `generate-models-db` with original 1.2.2 code and patched code: it seems there are no regressions.