alias for varchar type in CDbSchema

DbSchema contains some type aliases you can use to create DDL queries that do not depend on database engine.

There is “string” meta-type among them which is mapped to “varchar (255)”. My question is - why it has already size of 255 chars? this makes really hard to create other sizes of string columns… (my solution is to strip (255) from this text like this: $varchar = str_replace( ‘(255)’, ‘’, $this->getDbConnection()->getSchema()->columnTypes[‘string’] );)

In my opinion "string" should be mapped only to "varchar" (you have to provide length on your own, like "string(16)"), or there should be another alias which could make this possible (my suggestion: varchar or similar) which would be mapped to "varchar" for mysql, "character varying" for pgsql, and so on.