On Oct 4, 2011, at 7:15 AM, Sergiu Dumitriu wrote:
On 10/03/2011 09:35 AM, jerem wrote:
I found ... I checked in hibernate mapping, it seems at some time length of column XWV_IP (in xwikistatsvisit) was increased from 32 to 255 ... Strangely in my instance it was not automatically migrated. I altered the column and don't get this error anymore.
Hibernate can automatically create tables and their columns, but it won't automatically change existing columns.
See also http://www.alittlemadness.com/2006/08/28/incremental-schema-upgrades-using-h... and http://stackoverflow.com/questions/4574785/update-database-schema-with-hiber... Sergiu, this seems to indicate that at some point we should have had a migrator to perform this change IMO as otherwise we're not doing a good job for upgrading XWiki. I remember we've just changed some sizes in our Hibernate file, does it mean we might have some problems in the future ? (prolly not since we reduced the size instead of increasing it). Thanks -Vincent