Bug 27252: Add deprecation warning, cross_fields pref, and add version to ES info
[koha.git] / installer / data / mysql / atomicupdate / Bug_27252_add_ElasticsearchCrossFields_preference.perl
1 $DBversion = 'XXX'; # will be replaced by the RM
2 if( CheckVersion( $DBversion ) ) {
3     # you can use $dbh here like:
4     $dbh->do(q{
5         INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
6        ('ElasticsearchCrossFields', '1', '', 'Enable "cross_fields" option for searches using Elastic search.', 'YesNo')
7     });
8     NewVersion( $DBversion, 27252, "Add ElasticsearchCrossFields system preference");
9 }