From c035519b0df8759d996b0fbcd063d97975e4aa93 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Thu, 19 Nov 2015 20:15:03 -0300 Subject: [PATCH] Bug 12072: DBRev 3.21.00.056 Signed-off-by: Tomas Cohen Arazi --- Koha.pm | 2 +- .../bug_12072_update_syspref_dateformat.sql | 1 - installer/data/mysql/updatedatabase.pl | 13 +++++++++++++ 3 files changed, 14 insertions(+), 2 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_12072_update_syspref_dateformat.sql diff --git a/Koha.pm b/Koha.pm index 5215cae20f..51a31a524b 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.055"; +$VERSION = "3.21.00.056"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_12072_update_syspref_dateformat.sql b/installer/data/mysql/atomicupdate/bug_12072_update_syspref_dateformat.sql deleted file mode 100644 index b5f96c9b0f..0000000000 --- a/installer/data/mysql/atomicupdate/bug_12072_update_syspref_dateformat.sql +++ /dev/null @@ -1 +0,0 @@ -UPDATE systempreferences SET options = 'metric|us|iso|dmydot', explanation = 'Define global date format (us mm/dd/yyyy, metric dd/mm/yyy, ISO yyyy-mm-dd, DMY separated by dots dd.mm.yyyy)' WHERE variable = 'dateformat' diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 355656d71d..6ba8e4d88b 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -11357,6 +11357,19 @@ if ( CheckVersion($DBversion) ) { SetVersion($DBversion); } +$DBversion = "3.21.00.056"; +if(CheckVersion($DBversion)) { + $dbh->do(q{ + UPDATE systempreferences + SET + options='metric|us|iso|dmydot', + explanation='Define global date format (us mm/dd/yyyy, metric dd/mm/yyy, ISO yyyy-mm-dd, DMY separated by dots dd.mm.yyyy)' + WHERE variable='dateformat' + }); + print "Upgrade to $DBversion done (Bug 12072: New dateformat dd.mm.yyyy)\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