Bug 27252: DBRev 19.11.13.001

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
(cherry picked from commit f40b7c2b6c)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
This commit is contained in:
Andrew Fuerste-Henry 2021-01-07 19:58:23 +00:00 committed by Victor Grousset/tuxayo
parent a4f7bbfd1c
commit a4d35d3de8
2 changed files with 10 additions and 10 deletions

View File

@ -1,9 +0,0 @@
$DBversion = 'XXX'; # will be replaced by the RM
if( CheckVersion( $DBversion ) ) {
# you can use $dbh here like:
$dbh->do(q{
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
('ElasticsearchCrossFields', '0', '', 'Enable "cross_fields" option for searches using Elastic search.', 'YesNo')
});
NewVersion( $DBversion, 27252, "Add ElasticsearchCrossFields system preference");
}

View File

@ -20762,13 +20762,22 @@ if ( CheckVersion( $DBversion ) ) {
SetVersion( $DBversion );
}
$DBversion = "19.11.13.000";
if ( CheckVersion( $DBversion ) ) {
print "Upgrade to $DBversion done (19.11.13 release)\n";
SetVersion( $DBversion );
}
$DBversion = '19.11.13.001';
if( CheckVersion( $DBversion ) ) {
$dbh->do(q{
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
('ElasticsearchCrossFields', '0', '', 'Enable "cross_fields" option for searches using Elastic search.', 'YesNo')
});
print "Upgrade to $DBversion done (Bug 27252 - Add ElasticsearchCrossFields system preference)\n";
SetVersion( $DBversion );
}
# SEE bug 13068
# if there is anything in the atomicupdate, read and execute it.
my $update_dir = C4::Context->config('intranetdir') . '/installer/data/mysql/atomicupdate/';