Bug 6716: Document patronimage table
authorNicole C. Engard <nengard@bywatersolutions.com>
Fri, 13 Jul 2012 18:36:08 +0000 (14:36 -0400)
committerPaul Poulain <paul.poulain@biblibre.com>
Mon, 23 Jul 2012 16:23:29 +0000 (18:23 +0200)
installer/data/mysql/kohastructure.sql

index 3ed0717..19ac147 100644 (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;