From e7a197a5e80af89f01fbfd15f8daeb8fa2fd7e03 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Tue, 9 May 2017 21:20:40 +0000 Subject: [PATCH] Bug 17465 - DBRev 16.12.00.036 Signed-off-by: Kyle M Hall --- Koha.pm | 2 +- .../bug_17465_-_add_NumSavedReports_syspref.sql | 1 - installer/data/mysql/updatedatabase.pl | 11 +++++++++++ 3 files changed, 12 insertions(+), 2 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_17465_-_add_NumSavedReports_syspref.sql diff --git a/Koha.pm b/Koha.pm index a1cce02491..0b88ac284c 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 = "16.12.00.035"; +$VERSION = "16.12.00.036"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_17465_-_add_NumSavedReports_syspref.sql b/installer/data/mysql/atomicupdate/bug_17465_-_add_NumSavedReports_syspref.sql deleted file mode 100644 index 229afb5ebe..0000000000 --- a/installer/data/mysql/atomicupdate/bug_17465_-_add_NumSavedReports_syspref.sql +++ /dev/null @@ -1 +0,0 @@ -INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`, `type`) VALUES ('NumSavedReports', '20', NULL, 'By default, show this number of saved reports.', 'Integer'); diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index bba670f42d..1888ec7e9f 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -14462,6 +14462,17 @@ The following item [% biblio.title %] has correctly been renewed and is now due print "Upgrade to $DBversion done (Bug 15705 - Notify the user on auto renewing)\n"; } +$DBversion = '16.12.00.036'; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q{ + INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`, `type`) + VALUES ('NumSavedReports', '20', NULL, 'By default, show this number of saved reports.', 'Integer'); + }); + + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 17465 - Add a System Preference to control number of Saved Reports displayed)\n"; +} + # 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