Bug 27360: (follow-up) DBRev 21.06.00.041
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 15 Nov 2021 10:48:51 +0000 (11:48 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 15 Nov 2021 11:38:39 +0000 (12:38 +0100)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
installer/data/mysql/db_revs/210600041.pl

index d5ced6d..f08dfac 100755 (executable)
@@ -9,7 +9,7 @@ return {
 
         unless ( column_exists('branches', 'public') ) {
             $dbh->do(q{
-                ALTER TABLE branches ADD public tinyint DEFAULT 1 AFTER pickup_location
+                ALTER TABLE branches ADD public tinyint(1) NOT NULL DEFAULT 1 AFTER pickup_location
             });
         }
     },