Bug 10703: Add db documentation for biblioimages table

This patch adds db documentation to the biblioimages table.

To test:

Apply patch
Review kohastructure.sql to be sure that the documentation is there

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 801d8237d8)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
Nicole C. Engard 2013-08-08 08:49:25 -04:00 committed by Tomas Cohen Arazi
parent 8a407d8d02
commit 6f55deac4a
1 changed files with 6 additions and 6 deletions

View File

@ -2913,12 +2913,12 @@ CREATE TABLE transport_cost (
DROP TABLE IF EXISTS `biblioimages`;
CREATE TABLE `biblioimages` (
`imagenumber` int(11) NOT NULL AUTO_INCREMENT,
`biblionumber` int(11) NOT NULL,
`mimetype` varchar(15) NOT NULL,
`imagefile` mediumblob NOT NULL,
`thumbnail` mediumblob NOT NULL,
CREATE TABLE `biblioimages` ( -- local cover images
`imagenumber` int(11) NOT NULL AUTO_INCREMENT, -- unique identifier for the image
`biblionumber` int(11) NOT NULL, -- foreign key from biblio table to link to biblionumber
`mimetype` varchar(15) NOT NULL, -- image type
`imagefile` mediumblob NOT NULL, -- image file contents
`thumbnail` mediumblob NOT NULL, -- thumbnail file contents
PRIMARY KEY (`imagenumber`),
CONSTRAINT `bibliocoverimage_fk1` FOREIGN KEY (`biblionumber`) REFERENCES `biblio` (`biblionumber`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;