Lines 7130-7136
if ( CheckVersion($DBversion) ) {
Link Here
|
7130 |
SetVersion($DBversion); |
7130 |
SetVersion($DBversion); |
7131 |
} |
7131 |
} |
7132 |
|
7132 |
|
7133 |
|
|
|
7134 |
$DBversion = "3.13.00.020"; |
7133 |
$DBversion = "3.13.00.020"; |
7135 |
if ( CheckVersion($DBversion) ) { |
7134 |
if ( CheckVersion($DBversion) ) { |
7136 |
$dbh->do("INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES('WhenLostForgiveFine','0',NULL,'If ON, Forgives the fines on an item when it is lost.','YesNo')"); |
7135 |
$dbh->do("INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES('WhenLostForgiveFine','0',NULL,'If ON, Forgives the fines on an item when it is lost.','YesNo')"); |
Lines 7139-7162
if ( CheckVersion($DBversion) ) {
Link Here
|
7139 |
SetVersion($DBversion); |
7138 |
SetVersion($DBversion); |
7140 |
} |
7139 |
} |
7141 |
|
7140 |
|
7142 |
|
|
|
7143 |
$DBversion = "3.13.00.XXX"; |
7144 |
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { |
7145 |
$dbh->do(" |
7146 |
INSERT INTO systempreferences (variable,value,explanation,options,type) |
7147 |
VALUES ( |
7148 |
'BlockExpiredPatronOpacActions', |
7149 |
'1', |
7150 |
'Set whether an expired patron can perform opac actions such as placing holds or renew books, can be overridden on a per patron-type basis', |
7151 |
NULL, |
7152 |
'YesNo' |
7153 |
) |
7154 |
"); |
7155 |
$dbh->do("ALTER TABLE `categories` ADD COLUMN `BlockExpiredPatronOpacActions` TINYINT(1) DEFAULT -1 NOT NULL AFTER category_type"); |
7156 |
print "Upgraded to $DBversion done (Bug 6739 - expired patrons not blocked from opac actions)\n"; |
7157 |
SetVersion ($DBversion); |
7158 |
} |
7159 |
|
7160 |
$DBversion ="3.13.00.021"; |
7141 |
$DBversion ="3.13.00.021"; |
7161 |
if ( CheckVersion($DBversion) ) { |
7142 |
if ( CheckVersion($DBversion) ) { |
7162 |
$dbh->do("INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES('ConfirmFutureHolds','0','Number of days for confirming future holds','','Integer');"); |
7143 |
$dbh->do("INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES('ConfirmFutureHolds','0','Number of days for confirming future holds','','Integer');"); |
Lines 7971-7976
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
Link Here
|
7971 |
SetVersion($DBversion); |
7952 |
SetVersion($DBversion); |
7972 |
} |
7953 |
} |
7973 |
|
7954 |
|
|
|
7955 |
$DBversion = "3.15.00.XXX"; |
7956 |
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { |
7957 |
$dbh->do(" |
7958 |
INSERT INTO systempreferences (variable,value,explanation,options,type) |
7959 |
VALUES ( |
7960 |
'BlockExpiredPatronOpacActions', |
7961 |
'1', |
7962 |
'Set whether an expired patron can perform opac actions such as placing holds or renew books, can be overridden on a per patron-type basis', |
7963 |
NULL, |
7964 |
'YesNo' |
7965 |
) |
7966 |
"); |
7967 |
$dbh->do("ALTER TABLE `categories` ADD COLUMN `BlockExpiredPatronOpacActions` TINYINT(1) DEFAULT -1 NOT NULL AFTER category_type"); |
7968 |
print "Upgraded to $DBversion done (Bug 6739 - expired patrons not blocked from opac actions)\n"; |
7969 |
SetVersion ($DBversion); |
7970 |
} |
7971 |
|
7972 |
|
7974 |
=head1 FUNCTIONS |
7973 |
=head1 FUNCTIONS |
7975 |
|
7974 |
|
7976 |
=head2 TableExists($table) |
7975 |
=head2 TableExists($table) |