]> git.koha-community.org Git - koha.git/commit
bug 3222: database changes for messaging preferences (DB rev 033)
authorGalen Charlton <galen.charlton@liblime.com>
Wed, 20 May 2009 16:35:49 +0000 (11:35 -0500)
committerGalen Charlton <galen.charlton@liblime.com>
Fri, 22 May 2009 18:20:45 +0000 (13:20 -0500)
commit329678f39bb84b4ac2437e6b4d7baa1681b9d812
tree7852b1af480bf2fed5cc344dca34082ace972fe9
parent1a23381418b9b9f3a176e4777ad6922b84d2d28f
bug 3222: database changes for messaging preferences (DB rev 033)

This patch modifies the database for the messaging
preferences enhancement <http://wiki.koha.org/doku.php?id=en:development:rfcs3.2:rfc32_defaultmessagingsettings>
as follows:

* adds a categorycode column to borrower_message_preferences

This allows a set of messaging preferences to be linked
to a patron category

* allow the borrowernumber column to be null

This allows a messaging preference set to be linked
*only* to a patron category.  If MySQL had check
constraints, I would add one so that exactly
one of borrowernumber and categorycode in a row in
borrower_message_preferences could be NULL.

* add a FK constraint from borrower_message_preferences.categorycode
to categories; if you delete a patron category, any default preferences
associated with it will be automatically deleted.

The messaging preference enhancement was sponsored by the Northeast
Kansas Library System (NEKLS).

Signed-off-by: Daniel Sweeney <daniel.sweeney@liblime.com>
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
installer/data/mysql/kohastructure.sql
installer/data/mysql/updatedatabase.pl
kohaversion.pl