From c2e0082af05fa3646911075d0f2cbeee75954a4a Mon Sep 17 00:00:00 2001 From: Jared Camins-Esakov Date: Sun, 17 Mar 2013 09:22:13 -0400 Subject: [PATCH] Correct order of updatedatabase entries --- installer/data/mysql/updatedatabase.pl | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 0fe775053d..cca1b120cd 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -6477,14 +6477,6 @@ if ( CheckVersion($DBversion) ) { SetVersion($DBversion); } -$DBversion = "3.11.00.030"; -if ( CheckVersion($DBversion) ) { - $dbh->do("INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('FinesIncludeGracePeriod','1','If enabled, fines calculations will include the grace period.',NULL,'YesNo');"); - print "Upgrade to $DBversion done (Add system preference FinesIncludeGracePeriod)\n"; - SetVersion($DBversion); -} - - $DBversion = "3.11.00.026"; if ( CheckVersion($DBversion) ) { $dbh->do(qq{ @@ -6527,6 +6519,13 @@ if (CheckVersion($DBversion)) { SetVersion ($DBversion); } +$DBversion = "3.11.00.030"; +if ( CheckVersion($DBversion) ) { + $dbh->do("INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('FinesIncludeGracePeriod','1','If enabled, fines calculations will include the grace period.',NULL,'YesNo');"); + print "Upgrade to $DBversion done (Add system preference FinesIncludeGracePeriod)\n"; + SetVersion($DBversion); +} + =head1 FUNCTIONS -- 2.39.5