[Koha-bugs] [Bug 30497] New: Constraint old_reserves_ibfk_4 should be SET NULL instead of CASCADE
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Apr 8 09:54:28 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30497
Bug ID: 30497
Summary: Constraint old_reserves_ibfk_4 should be SET NULL
instead of CASCADE
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: Database
Assignee: koha-bugs at lists.koha-community.org
Reporter: m.de.rooy at rijksmuseum.nl
QA Contact: testopia at bugs.koha-community.org
kohastructure defines it as SET NULL
but this upgrade 'decided' differently:
$DBversion = "3.23.00.055"; ALTER TABLE old_reserves ADD CONSTRAINT
`old_reserves_ibfk_4` FOREIGN KEY (`itemtype`) REFERENCES `itemtypes`
(`itemtype`) ON DELETE CASCADE ON UPDATE CASCADE;
I think we should go for SET NULL here.
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list