[Koha-patches] [PATCH] Bug 6716: DB Documentation for the branchrelations table
Nicole C. Engard
nengard at bywatersolutions.com
Sun Aug 21 14:47:37 CEST 2011
Documents the branchrelations table.
---
installer/data/mysql/kohastructure.sql | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql
index 8b84019..ce301e6 100644
--- a/installer/data/mysql/kohastructure.sql
+++ b/installer/data/mysql/kohastructure.sql
@@ -363,9 +363,9 @@ CREATE TABLE `branches` (
--
DROP TABLE IF EXISTS `branchrelations`;
-CREATE TABLE `branchrelations` (
- `branchcode` varchar(10) NOT NULL default '',
- `categorycode` varchar(10) NOT NULL default '',
+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`),
--
1.7.2.3
More information about the Koha-patches
mailing list