From 73d9706667c3e1574c0b19009f4dc4e02c4c65e2 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Tue, 26 May 2015 10:59:54 -0300 Subject: [PATCH] Bug 12160: DBRev 3.21.00.002 Signed-off-by: Tomas Cohen Arazi --- Koha.pm | 2 +- ...e_pref_intranetuserjs_to_IntranetUserJS.sql | 1 - ...60-Rename_pref_opacuserjs_to_OPACUserJS.sql | 1 - installer/data/mysql/updatedatabase.pl | 18 ++++++++++++++++++ 4 files changed, 19 insertions(+), 3 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/Bug_12160-Rename_pref_intranetuserjs_to_IntranetUserJS.sql delete mode 100644 installer/data/mysql/atomicupdate/Bug_12160-Rename_pref_opacuserjs_to_OPACUserJS.sql diff --git a/Koha.pm b/Koha.pm index b7e1e5f584..19fa67dec5 100644 --- a/Koha.pm +++ b/Koha.pm @@ -29,7 +29,7 @@ use vars qw{ $VERSION }; # - #4 : the developer version. The 4th number is the database subversion. # used by developers when the database changes. updatedatabase take care of the changes itself # and is automatically called by Auth.pm when needed. -$VERSION = "3.21.00.000"; +$VERSION = "3.21.00.002"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/Bug_12160-Rename_pref_intranetuserjs_to_IntranetUserJS.sql b/installer/data/mysql/atomicupdate/Bug_12160-Rename_pref_intranetuserjs_to_IntranetUserJS.sql deleted file mode 100644 index 763cc7603d..0000000000 --- a/installer/data/mysql/atomicupdate/Bug_12160-Rename_pref_intranetuserjs_to_IntranetUserJS.sql +++ /dev/null @@ -1 +0,0 @@ -UPDATE systempreferences SET variable="IntranetUserJS" where variable="intranetuserjs" diff --git a/installer/data/mysql/atomicupdate/Bug_12160-Rename_pref_opacuserjs_to_OPACUserJS.sql b/installer/data/mysql/atomicupdate/Bug_12160-Rename_pref_opacuserjs_to_OPACUserJS.sql deleted file mode 100644 index 0b03d43e5d..0000000000 --- a/installer/data/mysql/atomicupdate/Bug_12160-Rename_pref_opacuserjs_to_OPACUserJS.sql +++ /dev/null @@ -1 +0,0 @@ -UPDATE systempreferences SET variable="OPACUserJS" where variable="opacuserjs" diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 64d4abfdfc..9ee74c18dd 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -10468,6 +10468,24 @@ if ( CheckVersion($DBversion) ) { SetVersion ($DBversion); } +$DBversion = "3.21.00.001"; +if ( CheckVersion($DBversion) ) { + $dbh->do(q| + UPDATE systempreferences SET variable='IntranetUserJS' where variable='intranetuserjs' + |); + print "Upgrade to $DBversion done (Bug 12160: Rename intranetuserjs to IntranetUserJS)\n"; + SetVersion ($DBversion); +} + +$DBversion = "3.21.00.002"; +if ( CheckVersion($DBversion) ) { + $dbh->do(q| + UPDATE systempreferences SET variable='OPACUserJS' where variable='opacuserjs' + |); + print "Upgrade to $DBversion done (Bug 12160: Rename opacuserjs to OPACUserJS)\n"; + SetVersion ($DBversion); +} + # DEVELOPER PROCESS, search for anything to execute in the db_update directory # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. -- 2.39.5