View | Details | Raw Unified | Return to bug 27360
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug_27360.pl (+16 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number => "27360",
5
    description => "Make display of libraries configurable",
6
    up => sub {
7
        my ($args) = @_;
8
        my ($dbh, $out) = @$args{qw(dbh out)};
9
10
        unless ( column_exists('branches', 'public') ) {
11
            $dbh->do(q{
12
                ALTER TABLE branches ADD public tinyint DEFAULT 1 AFTER pickup_location
13
            });
14
        }
15
    },
16
}
(-)a/installer/data/mysql/kohastructure.sql (-1 / +1 lines)
Lines 1485-1490 CREATE TABLE `branches` ( Link Here
1485
  `geolocation` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'geolocation of your library',
1485
  `geolocation` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'geolocation of your library',
1486
  `marcorgcode` varchar(16) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'MARC Organization Code, see http://www.loc.gov/marc/organizations/orgshome.html, when empty defaults to syspref MARCOrgCode',
1486
  `marcorgcode` varchar(16) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'MARC Organization Code, see http://www.loc.gov/marc/organizations/orgshome.html, when empty defaults to syspref MARCOrgCode',
1487
  `pickup_location` tinyint(1) NOT NULL DEFAULT 1 COMMENT 'the ability to act as a pickup location',
1487
  `pickup_location` tinyint(1) NOT NULL DEFAULT 1 COMMENT 'the ability to act as a pickup location',
1488
  `public` tinyint(1) NOT NULL DEFAULT 1 COMMENT 'whether this library should show in the opac',
1488
  PRIMARY KEY (`branchcode`)
1489
  PRIMARY KEY (`branchcode`)
1489
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
1490
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
1490
/*!40101 SET character_set_client = @saved_cs_client */;
1491
/*!40101 SET character_set_client = @saved_cs_client */;
1491
- 

Return to bug 27360