DBRev 3.18.10.01
This commit is contained in:
parent
e2a3e25a56
commit
a86e1ca364
|
|
@ -1,2 +0,0 @@
|
|||
DELETE cr.* FROM course_reserves AS cr LEFT JOIN course_items USING(ci_id) WHERE course_items.ci_id IS NULL;
|
||||
ALTER TABLE course_reserves add CONSTRAINT course_reserves_ibfk_2 FOREIGN KEY (ci_id) REFERENCES course_items (ci_id) ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
|
|
@ -9854,7 +9854,24 @@ if ( CheckVersion($DBversion) ) {
|
|||
SetVersion ($DBversion);
|
||||
print "Done (3.18.10 release)\n";
|
||||
}
|
||||
|
||||
$DBversion = "3.18.10.001";
|
||||
if ( CheckVersion($DBversion) ) {
|
||||
print "Bug 14205: Deleting an Item/Record does not remove link to course reserve\n";
|
||||
$dbh->do(q{
|
||||
DELETE cr.*
|
||||
FROM course_reserves AS cr
|
||||
LEFT JOIN course_items USING(ci_id)
|
||||
WHERE course_items.ci_id IS NULL
|
||||
});
|
||||
$dbh->do(q{
|
||||
ALTER IGNORE TABLE course_reserves
|
||||
add CONSTRAINT course_reserves_ibfk_2
|
||||
FOREIGN KEY (ci_id) REFERENCES course_items (ci_id)
|
||||
ON DELETE CASCADE ON UPDATE CASCADE
|
||||
});
|
||||
print "Upgrade to $DBversion done";
|
||||
SetVersion($DBversion);
|
||||
}
|
||||
|
||||
|
||||
=head1 FUNCTIONS
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ the kohaversion is divided in 4 parts :
|
|||
use strict;
|
||||
|
||||
sub kohaversion {
|
||||
our $VERSION = '3.18.10.000';
|
||||
our $VERSION = '3.18.10.001';
|
||||
# version needs to be set this way
|
||||
# so that it can be picked up by Makefile.PL
|
||||
# during install
|
||||
|
|
|
|||
Loading…
Reference in New Issue