|
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 7930-7935
if ( CheckVersion($DBversion) ) {
Link Here
|
| 7930 |
SetVersion($DBversion); |
7911 |
SetVersion($DBversion); |
| 7931 |
} |
7912 |
} |
| 7932 |
|
7913 |
|
|
|
7914 |
$DBversion = "3.15.00.XXX"; |
| 7915 |
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { |
| 7916 |
$dbh->do(" |
| 7917 |
INSERT INTO systempreferences (variable,value,explanation,options,type) |
| 7918 |
VALUES ( |
| 7919 |
'BlockExpiredPatronOpacActions', |
| 7920 |
'1', |
| 7921 |
'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', |
| 7922 |
NULL, |
| 7923 |
'YesNo' |
| 7924 |
) |
| 7925 |
"); |
| 7926 |
$dbh->do("ALTER TABLE `categories` ADD COLUMN `BlockExpiredPatronOpacActions` TINYINT(1) DEFAULT -1 NOT NULL AFTER category_type"); |
| 7927 |
print "Upgraded to $DBversion done (Bug 6739 - expired patrons not blocked from opac actions)\n"; |
| 7928 |
SetVersion ($DBversion); |
| 7929 |
} |
| 7930 |
|
| 7931 |
|
| 7933 |
=head1 FUNCTIONS |
7932 |
=head1 FUNCTIONS |
| 7934 |
|
7933 |
|
| 7935 |
=head2 TableExists($table) |
7934 |
=head2 TableExists($table) |