[Koha-bugs] [Bug 30497] 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 Sep 2 09:19:33 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30497
Nick Clemens <nick at bywatersolutions.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #139680|0 |1
is obsolete| |
--- Comment #5 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 140073
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=140073&action=edit
Bug 30497: Recreate old_reserves_ibfk_4 when it cascades
Test plan:
Drop old_reserves_ibfk_4.
Add back with:
alter table old_reserves ADD CONSTRAINT `old_reserves_ibfk_4` FOREIGN KEY
(`itemtype`) REFERENCES `itemtypes` (`itemtype`) ON DELETE CASCADE ON UPDATE
CASCADE;
Run dbrev. Check that constraint has been replaced by SET NULL.
Run dbrev again. No changes.
Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
[EDIT 23-08-22 Replaced DROP CONSTRAINT]
Signed-off-by: Nick Clemens <nick at bywatersolutions.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list