X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=installer%2Fdata%2Fmysql%2Fupdatedatabase.pl;h=a49bc7d699a2fceb8b51fd71909c5277fad55ad7;hb=91790fdd90c8dc59b70f6defd63b088febf5b39d;hp=e277334d3eda5b244702cf5daed32277346f5ebc;hpb=e762bdb9b2243070fd33e9aeb1bdfb88f2af2193;p=koha_ffzg diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index e277334d3e..a49bc7d699 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -16526,6 +16526,25 @@ if( CheckVersion( $DBversion ) ) { print "Upgrade to $DBversion done (Bug 18887 - Introduce new table 'circulation_rules', use for 'max_holds' rules)\n"; } +$DBversion = '18.06.00.037'; +if( CheckVersion( $DBversion ) ) { + unless (TableExists('branches_overdrive')){ + $dbh->do( q| + CREATE TABLE IF NOT EXISTS branches_overdrive ( + `branchcode` VARCHAR( 10 ) NOT NULL , + `authname` VARCHAR( 255 ) NOT NULL , + PRIMARY KEY (`branchcode`) , + CONSTRAINT `branches_overdrive_ibfk_1` FOREIGN KEY (`branchcode`) REFERENCES `branches` (`branchcode`) ON DELETE CASCADE ON UPDATE CASCADE + ) ENGINE = INNODB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci | + ); + } + $dbh->do("INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES ('OverDriveAuthname', '', 'Authname for OverDrive Patron Authentication, will be used as fallback if individual branch authname not set', NULL, 'Free');"); + $dbh->do("INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES ('OverDriveWebsiteID','', 'WebsiteID provided by OverDrive', NULL, 'Free');"); + $dbh->do("INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES ('OverDrivePasswordRequired','', 'Does the library require passwords for OverDrive SIP authentication', NULL, 'YesNo');"); + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 21082 - Add overdrive patron auth method)\n"; +} + # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it.