postgresql missing field type codes in data_types_reverse
|Reported by:||trbs||Owned by:||nobody|
|Component:||Database layer (models, ORM)||Version:||master|
|Severity:||Normal||Keywords:||bpchar, data_types_reverse, introspection inspectdb|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I've created a patch to add 'char' field support to data_types_reverse in the PostgreSQL.
As a char(50) is basically the same (CharField) as a varchar(50) for Django.
Also created a second patch which also adds 'int8' to the list as an 'IntegerField'.
This would make inspectdb and other (third-party code?) that uses data_type_reverse a bit more complete for PG.