Bug 6716: DB Documentation for the branchrelations table

Documents the branchrelations table.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
Nicole C. Engard 2011-08-21 08:47:05 -04:00 committed by Chris Cormack
parent 24b3f36b5b
commit f52965559b

View file

@ -367,9 +367,9 @@ CREATE TABLE `branches` ( -- information about your libraries or branches are st
--
DROP TABLE IF EXISTS `branchrelations`;
CREATE TABLE `branchrelations` ( -- tracks which libraries/branches are in each library/branch group
`branchcode` varchar(10) NOT NULL default '', -- foreign key linking to the branches table
`categorycode` varchar(10) NOT NULL default '', -- foreign key linking to the branchcategories table
CREATE TABLE `branchrelations` ( -- this table links libraries/branches to groups
`branchcode` varchar(10) NOT NULL default '', -- foreign key from the branches table to identify the branch
`categorycode` varchar(10) NOT NULL default '', -- foreign key from the branchcategories table to identify the group
PRIMARY KEY (`branchcode`,`categorycode`),
KEY `branchcode` (`branchcode`),
KEY `categorycode` (`categorycode`),