From 93f9c247a6fdc488d1e84fa42600fc5a83b6abc4 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Mon, 3 Mar 2025 15:27:50 -0100 Subject: [PATCH] Bug 37901: atomicupdate: Add 'illrequest_id' column to statistics --- installer/data/mysql/atomicupdate/bug_37901.pl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/installer/data/mysql/atomicupdate/bug_37901.pl b/installer/data/mysql/atomicupdate/bug_37901.pl index 611b6c2a32b..7b772d35917 100755 --- a/installer/data/mysql/atomicupdate/bug_37901.pl +++ b/installer/data/mysql/atomicupdate/bug_37901.pl @@ -36,6 +36,15 @@ return { $dbh->do(q{ DROP TABLE pseudonymized_borrower_attributes; }); } + unless ( column_exists( 'statistics', 'illrequest_id' ) ) { + $dbh->do( + q{ + ALTER TABLE statistics + ADD COLUMN `illrequest_id` int(11) DEFAULT NULL AFTER `itemnumber` + } + ); + } + say_success( $out, "Finished" ); }, }; -- 2.39.5