From 7d13ba8bfbbf2f06009c19797fc4ac11ae12d0ba Mon Sep 17 00:00:00 2001 From: Kyle Hall Date: Fri, 8 Oct 2021 09:32:21 -0400 Subject: [PATCH] Bug 28826: DBRev 21.05.04.002 Signed-off-by: Kyle M Hall --- .../atomicupdate/bug_28826_add_FacetSort_syspref.perl | 9 --------- installer/data/mysql/updatedatabase.pl | 10 ++++++++++ 2 files changed, 10 insertions(+), 9 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_28826_add_FacetSort_syspref.perl diff --git a/installer/data/mysql/atomicupdate/bug_28826_add_FacetSort_syspref.perl b/installer/data/mysql/atomicupdate/bug_28826_add_FacetSort_syspref.perl deleted file mode 100644 index c69a0f9454..0000000000 --- a/installer/data/mysql/atomicupdate/bug_28826_add_FacetSort_syspref.perl +++ /dev/null @@ -1,9 +0,0 @@ -$DBversion = 'XXX'; -if( CheckVersion( $DBversion ) ) { - $dbh->do(q{ - INSERT IGNORE INTO systempreferences - ( variable, value, options, explanation, type ) VALUES - ('FacetOrder','Alphabetical','Alphabetical|Usage','Specify the order of facets within each category','Choice') - }); - NewVersion( $DBversion, 28826, "Add system preference FacetOrder"); -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 26dd59e3df..587c0820ef 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -24496,6 +24496,16 @@ if( CheckVersion( $DBversion ) ) { NewVersion( $DBversion, "29073", "Make DefaultHoldExpirationdate use 1/0 values" ); } +$DBversion = '21.05.04.002'; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q{ + INSERT IGNORE INTO systempreferences + ( variable, value, options, explanation, type ) VALUES + ('FacetOrder','Alphabetical','Alphabetical|Usage','Specify the order of facets within each category','Choice') + }); + NewVersion( $DBversion, 28826, "Add system preference FacetOrder"); +} + # 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/'; -- 2.39.5