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

(-)a/installer/data/mysql/kohastructure.sql (+1 lines)
Lines 1155-1160 CREATE TABLE `issuingrules` ( -- circulation and fine rules Link Here
1155
  `hardduedatecompare` tinyint NOT NULL default "0", -- type of hard due date (1 = after, 0 = on, -1 = before)
1155
  `hardduedatecompare` tinyint NOT NULL default "0", -- type of hard due date (1 = after, 0 = on, -1 = before)
1156
  `renewalsallowed` smallint(6) NOT NULL default "0", -- how many renewals are allowed
1156
  `renewalsallowed` smallint(6) NOT NULL default "0", -- how many renewals are allowed
1157
  `renewalperiod` int(4) default NULL, -- renewal period in the unit set in issuingrules.lengthunit
1157
  `renewalperiod` int(4) default NULL, -- renewal period in the unit set in issuingrules.lengthunit
1158
  `norenewalbefore` int(4) default NULL, -- no renewal allowed until X days or hours before due date. In the unit set in issuingrules.lengthunit
1158
  `reservesallowed` smallint(6) NOT NULL default "0", -- how many holds are allowed
1159
  `reservesallowed` smallint(6) NOT NULL default "0", -- how many holds are allowed
1159
  `branchcode` varchar(10) NOT NULL default '', -- the branch this rule is for (branches.branchcode)
1160
  `branchcode` varchar(10) NOT NULL default '', -- the branch this rule is for (branches.branchcode)
1160
  overduefinescap decimal(28,6) default NULL, -- the maximum amount of an overdue fine
1161
  overduefinescap decimal(28,6) default NULL, -- the maximum amount of an overdue fine
(-)a/installer/data/mysql/updatedatabase.pl (-1 / +9 lines)
Lines 8083-8088 if ( CheckVersion($DBversion) ) { Link Here
8083
    SetVersion($DBversion);
8083
    SetVersion($DBversion);
8084
}
8084
}
8085
8085
8086
$DBversion = "3.15.00.XXX";
8087
if(CheckVersion($DBversion)) {
8088
    $dbh->do(q{
8089
        ALTER TABLE issuingrules ADD norenewalbefore int(4) default NULL AFTER renewalperiod
8090
    });
8091
    print "Upgrade to $DBversion done (Bug 7413: Allow OPAC renewal x days before due date)\n";
8092
    SetVersion($DBversion);
8093
}
8094
8086
=head1 FUNCTIONS
8095
=head1 FUNCTIONS
8087
8096
8088
=head2 TableExists($table)
8097
=head2 TableExists($table)
8089
- 

Return to bug 7413