@@ -, +, @@ --- installer/data/mysql/atomicupdate/bug_24559.perl | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 installer/data/mysql/atomicupdate/bug_24559.perl --- a/installer/data/mysql/atomicupdate/bug_24559.perl +++ a/installer/data/mysql/atomicupdate/bug_24559.perl @@ -0,0 +1,19 @@ +$DBversion = 'XXX'; # will be replaced by the RM +if( CheckVersion( $DBversion ) ) { + $dbh->do(q{ + ALTER TABLE search_field + MODIFY COLUMN type enum( + '', + 'string', + 'date', + 'year', + 'number', + 'boolean', + 'sum', + 'isbn', + 'stdno' + ) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'what type of data this holds, relevant when storing it in the search engine' + }); + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 24559 - add year option to es types)\n"; +} --