From bb9dd99b278974bf7ca07cd00070cce5266942d6 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Sat, 31 Aug 2019 03:47:42 +0000 Subject: [PATCH] Bug 22524: DBRev 18.11.09.001 Signed-off-by: Lucas Gass --- installer/data/mysql/atomicupdate/bug_22524.perl | 8 -------- installer/data/mysql/updatedatabase.pl | 10 ++++++++++ 2 files changed, 10 insertions(+), 8 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_22524.perl diff --git a/installer/data/mysql/atomicupdate/bug_22524.perl b/installer/data/mysql/atomicupdate/bug_22524.perl deleted file mode 100644 index af765f8e60..0000000000 --- a/installer/data/mysql/atomicupdate/bug_22524.perl +++ /dev/null @@ -1,8 +0,0 @@ -$DBversion = 'XXX'; # will be replaced by the RM -if( CheckVersion( $DBversion ) ) { - $dbh->do( "UPDATE `search_field` SET `name` = 'date-time-last-modified', `label` = 'date-time-last-modified' WHERE `name` = 'date/time-last-modified'" ); - - # Always end with this (adjust the bug info) - SetVersion( $DBversion ); - print "Upgrade to $DBversion done (Bug 22524 - Fix date/time-last-modified search with Elasticsearch)\n"; -} \ No newline at end of file diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index a881a29775..dfb333aca5 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -17525,6 +17525,16 @@ if ( CheckVersion($DBversion) ) { SetVersion ($DBversion); } + +$DBversion = '18.11.09.001'; +if( CheckVersion( $DBversion ) ) { + $dbh->do( "UPDATE `search_field` SET `name` = 'date-time-last-modified', `label` = 'date-time-last-modified' WHERE `name` = 'date/time-last-modified'" ); + + # Always end with this (adjust the bug info) + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 22524 - Fix date/time-last-modified search with Elasticsearch)\n"; +} + # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. -- 2.39.5