@@ -, +, @@ --- .../mysql/atomicupdate/bug_24807-add-year-search-field-type.perl | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 installer/data/mysql/atomicupdate/bug_24807-add-year-search-field-type.perl --- a/installer/data/mysql/atomicupdate/bug_24807-add-year-search-field-type.perl +++ a/installer/data/mysql/atomicupdate/bug_24807-add-year-search-field-type.perl @@ -0,0 +1,7 @@ +$DBversion = 'XXX'; # will be replaced by the RM +if( CheckVersion( $DBversion ) ) { + $dbh->do( "ALTER TABLE `search_field` MODIFY COLUMN `type` enum('','string','date','number','boolean','sum','isbn','stdno','year') NOT NULL" ); + $dbh->do( "UPDATE `search_field` SET type = 'year' WHERE name = 'date-of-publication'" ); + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 14957 - Add 'year' type to improve sorting behaviour)\n"; +} --