From 09c76aa01020dc68c22136a6549eeb90530d37e4 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 8 Nov 2018 12:09:37 +0000 Subject: [PATCH] Bug 12365: DBRev 18.06.00.055 Signed-off-by: Nick Clemens --- Koha.pm | 2 +- .../bug_12365_-_add_note_column_to_issuingrules.perl | 9 --------- installer/data/mysql/updatedatabase.pl | 9 +++++++++ 3 files changed, 10 insertions(+), 10 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_12365_-_add_note_column_to_issuingrules.perl diff --git a/Koha.pm b/Koha.pm index 6a739e536c..e0a3f86986 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 = "18.06.00.054"; +$VERSION = "18.06.00.055"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_12365_-_add_note_column_to_issuingrules.perl b/installer/data/mysql/atomicupdate/bug_12365_-_add_note_column_to_issuingrules.perl deleted file mode 100644 index 9b800dbcf4..0000000000 --- a/installer/data/mysql/atomicupdate/bug_12365_-_add_note_column_to_issuingrules.perl +++ /dev/null @@ -1,9 +0,0 @@ -$DBversion = 'XXX'; -if( CheckVersion( $DBversion ) ) { - unless( column_exists( 'issuingrules', 'note' ) ) { - $dbh->do(q|ALTER TABLE `issuingrules` ADD `note` varchar(100) default NULL AFTER `article_requests`|); - } - - SetVersion( $DBversion ); - print "Upgrade to $DBversion done (Bug 12365: Add column issuingrules.note)\n"; -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 67bea640a1..4f6aaa2257 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -16925,6 +16925,15 @@ if( CheckVersion( $DBversion ) ) { print "Upgrade to $DBversion done (Bug 18316 - Add column search_field.weight)\n"; } +$DBversion = '18.06.00.055'; +if( CheckVersion( $DBversion ) ) { + unless( column_exists( 'issuingrules', 'note' ) ) { + $dbh->do(q|ALTER TABLE `issuingrules` ADD `note` varchar(100) default NULL AFTER `article_requests`|); + } + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 12365: Add column issuingrules.note)\n"; +} + # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. -- 2.39.2