From 8c1b551b38f1fb26ce4c946d59c8a3cfa83f7a69 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 28 Apr 2017 09:28:33 -0400 Subject: [PATCH] Bug 16344 - DBRev 16.12.00.030 Signed-off-by: Kyle M Hall --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/bug_16344.sql | 1 - installer/data/mysql/updatedatabase.pl | 12 ++++++++++++ 3 files changed, 13 insertions(+), 2 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_16344.sql diff --git a/Koha.pm b/Koha.pm index 056b8a48a5..9d4e4e4e41 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.029"; +$VERSION = "16.12.00.030"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_16344.sql b/installer/data/mysql/atomicupdate/bug_16344.sql deleted file mode 100644 index 5be20e87d4..0000000000 --- a/installer/data/mysql/atomicupdate/bug_16344.sql +++ /dev/null @@ -1 +0,0 @@ -ALTER TABLE issuingrules ADD COLUMN no_auto_renewal_after_hard_limit DATE DEFAULT NULL AFTER no_auto_renewal_after; diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 253a437f14..74d5f88ae5 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -14320,6 +14320,18 @@ if( CheckVersion( $DBversion ) ) { print "Upgrade to $DBversion done (Bug 14224: Add column issues.note and issues.notedate)\n"; } +$DBversion = '16.12.00.030'; +if( CheckVersion( $DBversion ) ) { + unless( column_exists( 'issuingrules', 'no_auto_renewal_after_hard_limit' ) ) { + $dbh->do(q{ + ALTER TABLE issuingrules ADD COLUMN no_auto_renewal_after_hard_limit DATE DEFAULT NULL AFTER no_auto_renewal_after; + }); + } + + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 16344 - Add a circ rule to limit the auto renewals given a specific date)\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