Hi,
I'm trying to create a DataModel with utf8_swedish_ci insted of the default utf8_general_ci. Is there a way to do this without modifying MySQLDatabase.php which seems to be the villain here?
My first attempt was to subclass Varchar since that's hard coded to utf8_general_ci and make my own CollatableVarchar which took a collation argument in the constructor and used that in requiredFields() to create a $values accordingly which is sent to DB::requireField().
But I got to ask. What's the point of that $values array in DBField::requireField() since MySQLDatabase is hard coded all over with "character set utf8 collate utf8_general_ci"?
So I guess my question is if there's a post hook in the table creation process that I can jack into and clean up that static junk?
The reason I want utf8_swedish_ci is because characters like åäö is incorrectly sorted in utf8_general_ci.
Regards
John