db
db copied to clipboard
Get DB type without size
Related - #694.
closed via #694
This is a separate issue.
Example:
getDbType()- varchar(255).
getSize() - 255.
??? - varchar.
What is case when need type without size?
In db-pgsql and db-oracle (almost all types) and db-mssql (some types) getDbType() returns type without size.
For DBMS consistence it is better to store pure db type (e.g. varchar) in ColumnSchema::$dbType.
And have a method to generate the complete db type (e.g. varchar(255))
Now getDbType() returns clear db type, for example varchar instead of varchar(255)