Update errors : [Thu Jun 30 16:12:57 2016] updatedatabase.pl: DBD::mysql::st execute failed: Data truncated for column 'type' at row 1 [for Statement "INSERT INTO `search_field` ( `label`, `name`, `type`) VALUES ( ?, ?, ? )" with ParamValues: 0='Match', 1='Match', 2=''] at /usr/share/perl5/DBIx/Class/Storage/DBI.pm line 1834. [Thu Jun 30 16:12:57 2016] updatedatabase.pl: DBIx::Class::Storage::DBI::_dbh_execute(): Data truncated for column 'type' at row 1 at /usr/share/koha/lib/Koha/Objects.pm line 101 When I checked code on git, this error maybe related with file /admin/searchengine/elasticsearch/mappings.yaml and file installer/data/mysql/updatedatabase.pl (from line 12263)
This is a show stopper for me. I'm upgrading from 3.22.11 to 16.05.04 compiled from source on openSUSE. The original upgrade made a lot of changes and ended with this error. The link at the bottom to log in brought me back to the web installer and gave me this error in step 3. I would go into mysql and increase the size of the 'type' field if I could figure out what table it is referring to. The error message is not very helpful.f
The problem is caused by STRICT_TRANS_TABLES. Delete it from my.cnf and restart mysql search_field.type is an enum and '' is not one of the listed values which causes STRICT_TRANS_TABLES to throw an error. I still think 'data truncated' is not very descriptive of the error, but that's mysql (or mariadb's) problem.
This should have been resolved by bug 20229 making sure that Koha doesn't use STRICT_TRANS_TABLES.