kohabug 2380 Correcting serialitems table structure and fixing duplicate barcode...
authorChris Nighswonger <chris.nighswonger@liblime.com>
Fri, 25 Jul 2008 15:44:30 +0000 (10:44 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Sun, 27 Jul 2008 11:07:40 +0000 (06:07 -0500)
commitcdf93bffee9e59d6fe19a0d4872ef47d1fbe72c4
treeb716f7d6614c20ff96909acd155179e969971fb8
parent0d7265bd7395f3e0de660f80f4b8a88be4e73392
kohabug 2380 Correcting serialitems table structure and fixing duplicate barcode check

The current serialitems table structure does not provide for a *:1 relationship with
the serial table. This causes a problem when attempting to add multiple items to a given
serial. The db throws an error when attempting to INSERT in  serialitems due to serialid.serialitems
being a unique key. A further side effect is that the marc record is updated with the
item inspite of the error. The mods to the serialitems table structure in this patch
drop serialid.serialitems as a key and make itemnumber.serialitems the primary key
creating a *:1 relationship with the serial table. This patch also makes serialid.serialitems
a foreign key referencing serialid.serial to maintain referential integrity.

Fix for duplicate barcode check

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
installer/data/mysql/kohastructure.sql
installer/data/mysql/updatedatabase.pl
kohaversion.pl
serials/serials-edit.pl