From f2e7fba8c9a2f4c9a05b979ac8548250a30c6245 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Mon, 28 Oct 2024 18:46:21 +0000 Subject: [PATCH] Bug 30648: DBRev 24.06.00.050 Signed-off-by: Katrin Fischer --- Koha.pm | 2 +- .../bug_30648.pl => db_revs/240600050.pl} | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) rename installer/data/mysql/{atomicupdate/bug_30648.pl => db_revs/240600050.pl} (61%) diff --git a/Koha.pm b/Koha.pm index 9d54a4bf34..2dfe09b028 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 = "24.06.00.049"; +$VERSION = "24.06.00.050"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_30648.pl b/installer/data/mysql/db_revs/240600050.pl similarity index 61% rename from installer/data/mysql/atomicupdate/bug_30648.pl rename to installer/data/mysql/db_revs/240600050.pl index 80d7c842a1..a6d1cf2f1b 100755 --- a/installer/data/mysql/atomicupdate/bug_30648.pl +++ b/installer/data/mysql/db_revs/240600050.pl @@ -3,7 +3,7 @@ use Koha::Installer::Output qw(say_warning say_failure say_success say_info); return { bug_number => "30648", - description => "Store biblionumber of deleted record in old reserves", + description => "Store biblionumber of deleted records in old_reserves", up => sub { my ($args) = @_; my ( $dbh, $out ) = @$args{qw(dbh out)}; @@ -12,20 +12,20 @@ return { $dbh->do( q{ ALTER TABLE `reserves` - ADD COLUMN `deleted_biblionumber` int(11) NULL DEFAULT NULL COMMENT 'links the reserve to the deleted bibliographic record (deletedbiblio.biblionumber)' AFTER biblionumber + ADD COLUMN `deleted_biblionumber` int(11) NULL DEFAULT NULL COMMENT 'links the hold to the deleted bibliographic record (deletedbiblio.biblionumber)' AFTER biblionumber } ); } - say $out "Added column 'reserves.deleted_biblionumber'"; + say_success( $out, "Added column 'reserves.deleted_biblionumber'"); if ( !column_exists( 'old_reserves', 'deleted_biblionumber' ) ) { $dbh->do( q{ ALTER TABLE `old_reserves` - ADD COLUMN `deleted_biblionumber` int(11) NULL DEFAULT NULL COMMENT 'links the reserve to the deleted bibliographic record (deletedbiblio.biblionumber)' AFTER biblionumber + ADD COLUMN `deleted_biblionumber` int(11) NULL DEFAULT NULL COMMENT 'links the hold to the deleted bibliographic record (deletedbiblio.biblionumber)' AFTER biblionumber } ); } - say $out "Added column 'old_reserves.deleted_biblionumber'"; + say_success( $out, "Added column 'old_reserves.deleted_biblionumber'"); }, }; -- 2.39.5