@@ -, +, @@ --- ...26247-add_RetainCatalogSearchTerms_syspref.pl | 12 ------------ ...26247-add_RetainPatronsSearchTerms_syspref.pl | 12 ------------ installer/data/mysql/atomicupdate/bug_26247.pl | 16 ++++++++++++++++ 3 files changed, 16 insertions(+), 24 deletions(-) delete mode 100755 installer/data/mysql/atomicupdate/bug_26247-add_RetainCatalogSearchTerms_syspref.pl delete mode 100755 installer/data/mysql/atomicupdate/bug_26247-add_RetainPatronsSearchTerms_syspref.pl create mode 100644 installer/data/mysql/atomicupdate/bug_26247.pl --- a/installer/data/mysql/atomicupdate/bug_26247-add_RetainCatalogSearchTerms_syspref.pl +++ a/installer/data/mysql/atomicupdate/bug_26247-add_RetainCatalogSearchTerms_syspref.pl @@ -1,12 +0,0 @@ -use Modern::Perl; - -return { - bug_number => "26247", - description => "Add new system preference RetainCatalogSearchTerms", - up => sub { - my ($args) = @_; - my ($dbh, $out) = @$args{qw(dbh out)}; - - $dbh->do(q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('RetainCatalogSearchTerms', '1', NULL, 'If enabled, searches entered into the catalog search bar will be retained', 'YesNo') }); - }, -}; --- a/installer/data/mysql/atomicupdate/bug_26247-add_RetainPatronsSearchTerms_syspref.pl +++ a/installer/data/mysql/atomicupdate/bug_26247-add_RetainPatronsSearchTerms_syspref.pl @@ -1,12 +0,0 @@ -use Modern::Perl; - -return { - bug_number => "26247", - description => "Add new system preference RetainPatronsSearchTerms", - up => sub { - my ($args) = @_; - my ($dbh, $out) = @$args{qw(dbh out)}; - - $dbh->do(q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('RetainPatronSearchTerms', '1', NULL, 'If enabled, searches entered into the checkout and patrons search bars will be retained', 'YesNo') }); - }, -}; --- a/installer/data/mysql/atomicupdate/bug_26247.pl +++ a/installer/data/mysql/atomicupdate/bug_26247.pl @@ -0,0 +1,16 @@ +use Modern::Perl; + +return { + bug_number => "26247", + description => "Add new retain search terms preferences", + up => sub { + my ($args) = @_; + my ($dbh, $out) = @$args{qw(dbh out)}; + + $dbh->do(q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('RetainCatalogSearchTerms', '1', NULL, 'If enabled, searches entered into the catalog search bar will be retained', 'YesNo') }); + say $out "Added `RetainCatalogSearchTerms` preference"; + + $dbh->do(q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('RetainPatronSearchTerms', '1', NULL, 'If enabled, searches entered into the checkout and patrons search bars will be retained', 'YesNo') }); + say $out "Added `RetainPatronsSearchTerms` preference"; + }, +}; --