[Koha-bugs] [Bug 13007] suggestions.budgetid should be a foreign key
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Sat Nov 22 11:37:36 CET 2014
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13007
Katrin Fischer <katrin.fischer at bsz-bw.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #33651|0 |1
is obsolete| |
Attachment #33653|0 |1
is obsolete| |
--- Comment #13 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
Created attachment 33807
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=33807&action=edit
[PASSED QA] Bug 13007: Add a foreign key for suggestions.budgetid
The DB field suggestions.budgetid should be linked to
aqbudgets.budget_id.
If the fund is removed, this column should be set to NULL.
Test plan:
1/ Using your SQL CLI (or equivalent), create or update 1+ suggestions and
set "0" in the budgetid field (or a nonexistent budget id).
2/ Execute the updatedabase script.
3/ Verify that your suggestion is unlinked to the nonexistent fund.
4/ Verify the constraint has correctly been added (show create table
suggestions).
5/ Check that this change does not affect the behavior on adding a
suggestion (linked to a fund or not).
Signed-off-by: Paola Rossi <paola.rossi at cineca.it>
Signed-off-by: Katrin Fischer <katrin.fischer.83 at web.de>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list