According to this: http://www.mediawiki.org/wiki/Manual:User_newtalk_table, IP was stored using varchar(40) .
But seems 45 should be the safe instead of 39?
http://stackoverflow.com/questions/4982701/best-way-to-store-ip-in-database
wikitech-l@lists.wikimedia.org