@@ -, +, @@ --- ...bug_19893_elasticsearch_index_status_sysprefs.perl | 11 +++++++++++ .../bug_19893_elasticsearch_index_status_sysprefs.sql | 2 -- 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 installer/data/mysql/atomicupdate/bug_19893_elasticsearch_index_status_sysprefs.perl delete mode 100644 installer/data/mysql/atomicupdate/bug_19893_elasticsearch_index_status_sysprefs.sql --- a/installer/data/mysql/atomicupdate/bug_19893_elasticsearch_index_status_sysprefs.perl +++ a/installer/data/mysql/atomicupdate/bug_19893_elasticsearch_index_status_sysprefs.perl @@ -0,0 +1,11 @@ +$DBversion = 'XXX'; # will be replaced by the RM +if ( CheckVersion($DBversion) ) { + $dbh->do(q{ + INSERT IGNORE INTO `systempreferences` (`variable`,`value`,`explanation`,`options`,`type`) VALUES + ('ElasticsearchIndexStatus_biblios', '0', 'Biblios index status', NULL, NULL), + ('ElasticsearchIndexStatus_authorities', '0', 'Authorities index status', NULL, NULL) + }); + + SetVersion($DBversion); + print "Upgrade to $DBversion done (Bug 19893 - Add elasticsearch index status preferences)\n"; +} --- a/installer/data/mysql/atomicupdate/bug_19893_elasticsearch_index_status_sysprefs.sql +++ a/installer/data/mysql/atomicupdate/bug_19893_elasticsearch_index_status_sysprefs.sql @@ -1,2 +0,0 @@ -INSERT IGNORE INTO systempreferences (variable, value, explanation, options, type) VALUES ('ElasticsearchIndexStatus_biblios', '0', 'Biblios index status', NULL, NULL); -INSERT IGNORE INTO systempreferences (variable, value, explanation, options, type) VALUES ('ElasticsearchIndexStatus_authorities', '0', 'Authorities index status', NULL, NULL); --