Bug 20133: Add new column library_groups.ft_hide_patron_info

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2018-02-02 14:21:14 -03:00
parent 340c18d8bc
commit 25655c3bc5
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,10 @@
$DBversion = 'XXX'; # will be replaced by the RM
if( CheckVersion( $DBversion ) ) {
if( !column_exists( 'library_groups', 'ft_hide_patron_info' ) ) {
$dbh->do( "ALTER TABLE library_groups ADD COLUMN ft_hide_patron_info tinyint(1) NOT NULL DEFAULT 0 AFTER description" );
}
SetVersion( $DBversion );
print "Upgrade to $DBversion done (Bug XXXXX - Add library_groups.ft_hide_patron_info)\n";
}

View File

@ -4143,6 +4143,7 @@ CREATE TABLE library_groups (
branchcode VARCHAR(10) NULL DEFAULT NULL, -- The branchcode of a branch belonging to the parent group
title VARCHAR(100) NULL DEFAULT NULL, -- Short description of the goup
description TEXT NULL DEFAULT NULL, -- Longer explanation of the group, if necessary
ft_hide_patron_info tinyint(1) NOT NULL DEFAULT 0, -- Turn on the feature "Hide patron's info" for this group
created_on TIMESTAMP NULL, -- Date and time of creation
updated_on TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- Date and time of last
PRIMARY KEY id ( id ),