Menu

#12 Maximum title length is too short in database

open
nobody
None
5
2011-02-08
2011-02-08
No

In the Admin Panel you can set the "Maximum Title Length" up to 255 characters (as shown in the default template) but the database field is a "varchar(64)" so titles are truncated after 64 characters.
The solution is to alter the table like this (or similar);
ALTER TABLE `links` CHANGE `name` `name` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL

Discussion


Log in to post a comment.

MongoDB Logo MongoDB