Bug 6716: Document patronimage table

This commit is contained in:
Nicole C. Engard 2012-07-13 14:36:08 -04:00 committed by Paul Poulain
parent f32d7e6483
commit 5ab6d0ccd9
1 changed files with 4 additions and 4 deletions

View File

@ -1536,10 +1536,10 @@ CREATE TABLE `patroncards` (
--
DROP TABLE IF EXISTS `patronimage`;
CREATE TABLE `patronimage` (
`cardnumber` varchar(16) NOT NULL,
`mimetype` varchar(15) NOT NULL,
`imagefile` mediumblob NOT NULL,
CREATE TABLE `patronimage` ( -- information related to patron images
`cardnumber` varchar(16) NOT NULL, -- the cardnumber of the patron this image is attached to (borrowers.cardnumber)
`mimetype` varchar(15) NOT NULL, -- the format of the image (png, jpg, etc)
`imagefile` mediumblob NOT NULL, -- the image
PRIMARY KEY (`cardnumber`),
CONSTRAINT `patronimage_fk1` FOREIGN KEY (`cardnumber`) REFERENCES `borrowers` (`cardnumber`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;