From a64e20b39c160f9b688f385d3920582d63422019 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Tue, 3 May 2022 10:38:04 -1000 Subject: [PATCH] Bug 22785: DBRev 21.12.00.046 Signed-off-by: Fridolin Somers --- Koha.pm | 2 +- .../mysql/{atomicupdate/bug_22785.pl => db_revs/211200046.pl} | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) rename installer/data/mysql/{atomicupdate/bug_22785.pl => db_revs/211200046.pl} (84%) diff --git a/Koha.pm b/Koha.pm index 80e71c04cf..b9d59e1767 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 = "21.12.00.045"; +$VERSION = "21.12.00.046"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_22785.pl b/installer/data/mysql/db_revs/211200046.pl similarity index 84% rename from installer/data/mysql/atomicupdate/bug_22785.pl rename to installer/data/mysql/db_revs/211200046.pl index 8a4b92ada8..3ada8b6855 100755 --- a/installer/data/mysql/atomicupdate/bug_22785.pl +++ b/installer/data/mysql/db_revs/211200046.pl @@ -11,6 +11,8 @@ return { ALTER TABLE import_record_matches ADD COLUMN chosen TINYINT null DEFAULT null AFTER score }); say $out "chosen column added to import_record_matches"; + } else { + say $out "chosen column exists. Update has already been run"; } }, -} +}; -- 2.39.5