Bug 8002 [SIGNED-OFF][REVISED] Can't add patron attribute type in newer installation
authorOwen Leonard <oleonard@myacpl.org>
Tue, 24 Apr 2012 15:20:42 +0000 (11:20 -0400)
committerPaul Poulain <paul.poulain@biblibre.com>
Mon, 30 Apr 2012 12:28:49 +0000 (14:28 +0200)
commit50f1db6c770df7bd70aebcbe8753443b02a6f8b2
treee13e848fa2ca48c5a876098875630beb3f027065
parent07cc9cd8776fb752e33804971d4c855954c55114
Bug 8002 [SIGNED-OFF][REVISED] Can't add patron attribute type in newer installation

Correcting patron_attributes_types definition in kohastructure.sql
to allow NULL entries for category_code, matching the definition
specified in updatedatabase.pl. Adds an entry to updatedatabase.pl
to correct existing installations with the incorrect table structure.

After running the updated updatedatabase.pl the category_code
column in borrower_attribute_types should show that it allows
NULL entries. Adding a new patron attribute type with no
patron category specified should work correctly.

To test the update to kohastructure.sql: Back up your Koha
database, drop it, and recreate it. Load the staff interface
and go through the web installer. After recreating the database
enable ExtendedPatronAttributes and try adding a new patron
attribute type with no patron category specified. The operation
should be successful.

signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
a new update for installations affected.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
installer/data/mysql/kohastructure.sql
installer/data/mysql/updatedatabase.pl