@@ -, +, @@ --- installer/data/mysql/atomicupdate/bug_7534.perl | 7 +++++++ installer/data/mysql/kohastructure.sql | 1 + 2 files changed, 8 insertions(+) create mode 100644 installer/data/mysql/atomicupdate/bug_7534.perl --- a/installer/data/mysql/atomicupdate/bug_7534.perl +++ a/installer/data/mysql/atomicupdate/bug_7534.perl @@ -0,0 +1,7 @@ +$DBversion = 'XXX'; # will be replaced by the RM +if( CheckVersion( $DBversion ) ) { + $dbh->do( "ALTER TABLE branches ADD COLUMN pickup_location TINYINT(1) not null default 1" ); + + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 7534 - Let libraries have configuration for pickup locations)\n"; +} --- a/installer/data/mysql/kohastructure.sql +++ a/installer/data/mysql/kohastructure.sql @@ -267,6 +267,7 @@ CREATE TABLE `branches` ( -- information about your libraries or branches are st opac_info MEDIUMTEXT, -- HTML that displays in OPAC `geolocation` VARCHAR(255) default NULL, -- geolocation of your library `marcorgcode` VARCHAR(16) default NULL, -- MARC Organization Code, see http://www.loc.gov/marc/organizations/orgshome.html, when empty defaults to syspref MARCOrgCode + `pickup_location` tinyint(1) NOT NULL default 1, -- the ability to act as a pickup location PRIMARY KEY (`branchcode`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; --