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

(-)a/installer/data/mysql/atomicupdate/bug10132_add_marcorgcode_to_library.perl (+10 lines)
Line 0 Link Here
1
$DBversion = 'XXX';  # will be replaced by the RM
2
if( CheckVersion( $DBversion ) ) {
3
4
    if( !column_exists( 'branches', 'marcorgcode' ) ) {
5
        $dbh->do( "ALTER TABLE branches ADD COLUMN marcorgcode VARCHAR(16) default NULL AFTER geolocation" );
6
    }
7
8
    SetVersion( $DBversion );
9
    print "Upgrade to $DBversion done (Bug 10132 -  MARCOrgCode on branch level)\n";
10
}
(-)a/installer/data/mysql/kohastructure.sql (-1 / +1 lines)
Lines 280-285 CREATE TABLE `branches` ( -- information about your libraries or branches are st Link Here
280
  `branchnotes` mediumtext, -- notes related to your library or branch
280
  `branchnotes` mediumtext, -- notes related to your library or branch
281
  opac_info text, -- HTML that displays in OPAC
281
  opac_info text, -- HTML that displays in OPAC
282
  `geolocation` VARCHAR(255) default NULL, -- geolocation of your library
282
  `geolocation` VARCHAR(255) default NULL, -- geolocation of your library
283
  `marcorgcode` VARCHAR(16) default NULL, -- MARC Organization Code, see http://www.loc.gov/marc/organizations/orgshome.html, when empty defaults to syspref MARCOrgCode
283
  PRIMARY KEY (`branchcode`)
284
  PRIMARY KEY (`branchcode`)
284
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
285
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
285
286
286
- 

Return to bug 10132