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 7945-7950 if (CheckVersion($DBversion)) { Link Here
7945
    SetVersion($DBversion);
7945
    SetVersion($DBversion);
7946
}
7946
}
7947
7947
7948
$DBversion = "3.15.00.XXX";
7949
if(CheckVersion($DBversion)) {
7950
    $dbh->do(q{
7951
        ALTER TABLE issuingrules ADD norenewalbefore int(4) default NULL AFTER renewalperiod
7952
    });
7953
    print "Upgrade to $DBversion done (Bug 7413: Allow OPAC renewal x days before due date)\n";
7954
    SetVersion($DBversion);
7955
}
7956
7948
=head1 FUNCTIONS
7957
=head1 FUNCTIONS
7949
7958
7950
=head2 TableExists($table)
7959
=head2 TableExists($table)
7951
- 

Return to bug 7413