From f461d70399280f6726fb5c077160da36212a6c92 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 6 May 2025 15:18:25 +0200 Subject: [PATCH] Bug 39835: columns_settings should be tinyint They are boolean in the schema file already --- installer/data/mysql/atomicupdate/bug_39835.pl | 9 +++++++++ installer/data/mysql/kohastructure.sql | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/installer/data/mysql/atomicupdate/bug_39835.pl b/installer/data/mysql/atomicupdate/bug_39835.pl index 72136c6951b..e6edc025af1 100755 --- a/installer/data/mysql/atomicupdate/bug_39835.pl +++ b/installer/data/mysql/atomicupdate/bug_39835.pl @@ -32,5 +32,14 @@ return { MODIFY COLUMN `debarred3` tinyint(1) DEFAULT 0 COMMENT 'is the patron restricted when the third notice is sent (1 for yes, 0 for no)' } ); + + $dbh->do( + q{ + ALTER TABLE `columns_settings` + MODIFY COLUMN `cannot_be_toggled` tinyint(1) NOT NULL DEFAULT 0, + MODIFY COLUMN `is_hidden` tinyint(1) NOT NULL DEFAULT 0 + } + ); + }, }; diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql index 5cde8aea47c..de377f0d18a 100644 --- a/installer/data/mysql/kohastructure.sql +++ b/installer/data/mysql/kohastructure.sql @@ -2206,8 +2206,8 @@ CREATE TABLE `columns_settings` ( `page` varchar(255) NOT NULL, `tablename` varchar(255) NOT NULL, `columnname` varchar(255) NOT NULL, - `cannot_be_toggled` int(1) NOT NULL DEFAULT 0, - `is_hidden` int(1) NOT NULL DEFAULT 0, + `cannot_be_toggled` tinyint(1) NOT NULL DEFAULT 0, + `is_hidden` tinyint(1) NOT NULL DEFAULT 0, PRIMARY KEY (`module`(191),`page`(191),`tablename`(191),`columnname`(191)) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- 2.34.1