https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40777

--- Comment #5 from Marcel de Rooy <[email protected]> ---
From kohastructure
  `homebranch` varchar(10) DEFAULT NULL COMMENT 'foreign key from the branches
table for the library that owns this item (MARC21 952$a)',
  `holdingbranch` varchar(10) DEFAULT NULL COMMENT 'foreign key from the
branches table for the library that is currently in possession item (MARC21
952$b)',

While both columns may still be NULL, we will have such issues.
What about NOT NULL to ensure integrity?
If we create an item somewhere or import it, we should probably know where it
belongs. Just suspecting that invalid branchcodes during import may be at
stake.

And note that the REST API who is called to fetch the items, may need some
extra check while we dont address it in the table design?

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to