diff --git a/installer/data/mysql/atomicupdate/bug_33368.pl b/installer/data/mysql/atomicupdate/bug_33368.pl new file mode 100755 index 0000000000..2fbdd8e209 --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_33368.pl @@ -0,0 +1,22 @@ +use Modern::Perl; + +return { + bug_number => "33368", + description => "Extend borrowers.flags to bigint", + up => sub { + my ($args) = @_; + my ($dbh, $out) = @$args{qw(dbh out)}; + $dbh->do(q{ + ALTER TABLE borrower_modifications + MODIFY COLUMN `flags` bigint(11) + }); + $dbh->do(q{ + ALTER TABLE borrowers + MODIFY COLUMN `flags` bigint(11) DEFAULT NULL COMMENT 'will include a number associated with the staff member''s permissions' + }); + $dbh->do(q{ + ALTER TABLE deletedborrowers + MODIFY COLUMN `flags` bigint(11) DEFAULT NULL COMMENT 'will include a number associated with the staff member''s permissions' + }); + }, +}; diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql index 34c4a0c877..72e1bc05b0 100644 --- a/installer/data/mysql/kohastructure.sql +++ b/installer/data/mysql/kohastructure.sql @@ -1323,7 +1323,7 @@ CREATE TABLE `borrower_modifications` ( `relationship` varchar(100) DEFAULT NULL, `sex` varchar(1) DEFAULT NULL, `password` varchar(30) DEFAULT NULL, - `flags` int(11) DEFAULT NULL, + `flags` bigint(11) DEFAULT NULL, `userid` varchar(75) DEFAULT NULL, `opacnote` longtext DEFAULT NULL, `contactnote` varchar(255) DEFAULT NULL, @@ -1446,7 +1446,7 @@ CREATE TABLE `borrowers` ( `password` varchar(60) DEFAULT NULL COMMENT 'patron/borrower''s Bcrypt encrypted password', `secret` mediumtext DEFAULT NULL COMMENT 'Secret for 2FA', `auth_method` enum('password','two-factor') NOT NULL DEFAULT 'password' COMMENT 'Authentication method', - `flags` int(11) DEFAULT NULL COMMENT 'will include a number associated with the staff member''s permissions', + `flags` bigint(11) DEFAULT NULL COMMENT 'will include a number associated with the staff member''s permissions', `userid` varchar(75) DEFAULT NULL COMMENT 'patron/borrower''s opac and/or staff interface log in', `opacnote` longtext DEFAULT NULL COMMENT 'a note on the patron/borrower''s account that is visible in the OPAC and staff interface', `contactnote` varchar(255) DEFAULT NULL COMMENT 'a note related to the patron/borrower''s alternate address', @@ -2569,7 +2569,7 @@ CREATE TABLE `deletedborrowers` ( `password` varchar(60) DEFAULT NULL COMMENT 'patron/borrower''s encrypted password', `secret` mediumtext DEFAULT NULL COMMENT 'Secret for 2FA', `auth_method` enum('password','two-factor') NOT NULL DEFAULT 'password' COMMENT 'Authentication method', - `flags` int(11) DEFAULT NULL COMMENT 'will include a number associated with the staff member''s permissions', + `flags` bigint(11) DEFAULT NULL COMMENT 'will include a number associated with the staff member''s permissions', `userid` varchar(75) DEFAULT NULL COMMENT 'patron/borrower''s opac and/or staff interface log in', `opacnote` longtext DEFAULT NULL COMMENT 'a note on the patron/borrower''s account that is visible in the OPAC and staff interface', `contactnote` varchar(255) DEFAULT NULL COMMENT 'a note related to the patron/borrower''s alternate address',