diff --git a/installer/data/mysql/db_revs/241200010.pl b/installer/data/mysql/db_revs/241200010.pl index 25b92446b0..dd1463b12e 100755 --- a/installer/data/mysql/db_revs/241200010.pl +++ b/installer/data/mysql/db_revs/241200010.pl @@ -13,7 +13,7 @@ return { $dbh->do( q{ ALTER TABLE borrower_attribute_types - MODIFY COLUMN `mandatory` tinyint(1) DEFAULT 0 COMMENT 'defines if the attribute is mandatory or not in the staff interface' + MODIFY COLUMN `mandatory` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'defines if the attribute is mandatory or not in the staff interface' } ); say_success( $out, "Modified column 'borrower_attribute_types.mandatory'" ); @@ -21,7 +21,7 @@ return { $dbh->do( q{ ALTER TABLE borrower_attribute_types - ADD COLUMN `opac_mandatory` tinyint(1) DEFAULT 0 COMMENT 'defines if the attribute is mandatory or not in the OPAC' + ADD COLUMN `opac_mandatory` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'defines if the attribute is mandatory or not in the OPAC' AFTER `mandatory` } );