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/';