From 008112025520ba05c162493a55f2f88e70db74d5 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 24 Oct 2018 17:19:19 +0000 Subject: [PATCH] Bug 15766: DBRev 18.06.00.044 Signed-off-by: Nick Clemens --- Koha.pm | 2 +- .../bug_15766_-_add_description_column_to_batches.perl | 9 --------- installer/data/mysql/updatedatabase.pl | 9 +++++++++ 3 files changed, 10 insertions(+), 10 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_15766_-_add_description_column_to_batches.perl diff --git a/Koha.pm b/Koha.pm index 41e60e75ff..36fa8ddbc6 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.043"; +$VERSION = "18.06.00.044"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_15766_-_add_description_column_to_batches.perl b/installer/data/mysql/atomicupdate/bug_15766_-_add_description_column_to_batches.perl deleted file mode 100644 index 1eb2c4a981..0000000000 --- a/installer/data/mysql/atomicupdate/bug_15766_-_add_description_column_to_batches.perl +++ /dev/null @@ -1,9 +0,0 @@ -$DBversion = 'XXX'; -if( CheckVersion( $DBversion ) ) { - unless( column_exists( 'creator_batches', 'description' ) ) { - $dbh->do(q|ALTER TABLE creator_batches ADD description mediumtext default NULL AFTER batch_id|); - } - - SetVersion( $DBversion ); - print "Upgrade to $DBversion done (Bug 15766: Add column creator_batches.description)\n"; -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 0731c659a9..460324b2b9 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -16691,6 +16691,15 @@ if ( CheckVersion($DBversion) ) { SetVersion($DBversion); } +$DBversion = '18.06.00.044'; +if( CheckVersion( $DBversion ) ) { + unless( column_exists( 'creator_batches', 'description' ) ) { + $dbh->do(q|ALTER TABLE creator_batches ADD description mediumtext default NULL AFTER batch_id|); + } + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 15766: Add column creator_batches.description)\n"; +} + # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. -- 2.39.5