Bugzilla – Attachment 10942 Details for
Bug 6716
Database Documentation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 6716: Document tags tables
Bug-6716-Document-tags-tables.patch (text/plain), 3.40 KB, created by
Nicole C. Engard
on 2012-07-18 13:35:41 UTC
(
hide
)
Description:
Bug 6716: Document tags tables
Filename:
MIME Type:
Creator:
Nicole C. Engard
Created:
2012-07-18 13:35:41 UTC
Size:
3.40 KB
patch
obsolete
>From 19709958fde51853336e953a59829d97b279e192 Mon Sep 17 00:00:00 2001 >From: Nicole C. Engard <nengard@bywatersolutions.com> >Date: Wed, 18 Jul 2012 09:34:08 -0400 >Subject: [PATCH] Bug 6716: Document tags tables > >I did not document the 'tags' table in this patch >because it looks like this table is unused, so I >need confirmation of that before marking it as >'unused.' >--- > installer/data/mysql/kohastructure.sql | 34 ++++++++++++++++---------------- > 1 files changed, 17 insertions(+), 17 deletions(-) > >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index 3b9827a..c8443f5 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -2004,13 +2004,13 @@ CREATE TABLE `tags` ( > -- > > DROP TABLE IF EXISTS `tags_all`; >-CREATE TABLE `tags_all` ( >- `tag_id` int(11) NOT NULL auto_increment, >- `borrowernumber` int(11) NOT NULL, >- `biblionumber` int(11) NOT NULL, >- `term` varchar(255) NOT NULL, >- `language` int(4) default NULL, >- `date_created` datetime NOT NULL, >+CREATE TABLE `tags_all` ( -- all of the tags >+ `tag_id` int(11) NOT NULL auto_increment, -- unique id and primary key >+ `borrowernumber` int(11) NOT NULL, -- the patron who added the tag (borrowers.borrowernumber) >+ `biblionumber` int(11) NOT NULL, -- the bib record this tag was left on (biblio.biblionumber) >+ `term` varchar(255) NOT NULL, -- the tag >+ `language` int(4) default NULL, -- the language the tag was left in >+ `date_created` datetime NOT NULL, -- the date the tag was added > PRIMARY KEY (`tag_id`), > KEY `tags_borrowers_fk_1` (`borrowernumber`), > KEY `tags_biblionumber_fk_1` (`biblionumber`), >@@ -2025,12 +2025,12 @@ CREATE TABLE `tags_all` ( > -- > > DROP TABLE IF EXISTS `tags_approval`; >-CREATE TABLE `tags_approval` ( >- `term` varchar(255) NOT NULL, >- `approved` int(1) NOT NULL default '0', >- `date_approved` datetime default NULL, >- `approved_by` int(11) default NULL, >- `weight_total` int(9) NOT NULL default '1', >+CREATE TABLE `tags_approval` ( -- approved tags >+ `term` varchar(255) NOT NULL, -- the tag >+ `approved` int(1) NOT NULL default '0', -- whether the tag is approved or not (1=yes, 0=pending, -1=rejected) >+ `date_approved` datetime default NULL, -- the date this tag was approved >+ `approved_by` int(11) default NULL, -- the librarian who approved the tag (borrowers.borrowernumber) >+ `weight_total` int(9) NOT NULL default '1', -- the total number of times this tag was used > PRIMARY KEY (`term`), > KEY `tags_approval_borrowers_fk_1` (`approved_by`), > CONSTRAINT `tags_approval_borrowers_fk_1` FOREIGN KEY (`approved_by`) >@@ -2042,10 +2042,10 @@ CREATE TABLE `tags_approval` ( > -- > > DROP TABLE IF EXISTS `tags_index`; >-CREATE TABLE `tags_index` ( >- `term` varchar(255) NOT NULL, >- `biblionumber` int(11) NOT NULL, >- `weight` int(9) NOT NULL default '1', >+CREATE TABLE `tags_index` ( -- a weighted list of all tags and where they are used >+ `term` varchar(255) NOT NULL, -- the tag >+ `biblionumber` int(11) NOT NULL, -- the bib record this tag was used on (biblio.biblionumber) >+ `weight` int(9) NOT NULL default '1', -- the number of times this term was used on this bib record > PRIMARY KEY (`term`,`biblionumber`), > KEY `tags_index_biblionumber_fk_1` (`biblionumber`), > CONSTRAINT `tags_index_term_fk_1` FOREIGN KEY (`term`) >-- >1.7.2.3
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 6716
:
4987
|
4988
|
4989
|
4992
|
5003
|
5004
|
5005
|
5006
|
5007
|
5008
|
5009
|
5011
|
5012
|
5013
|
5014
|
5139
|
5140
|
5141
|
5142
|
5174
|
5175
|
5176
|
5177
|
5178
|
5179
|
5186
|
5187
|
5188
|
5190
|
5192
|
5193
|
5355
|
5356
|
5663
|
5664
|
5665
|
5666
|
5668
|
5669
|
5686
|
5687
|
5706
|
5829
|
6004
|
6015
|
6591
|
6592
|
6593
|
6594
|
6595
|
6596
|
6597
|
6598
|
6599
|
10788
|
10789
|
10790
|
10791
|
10792
|
10793
|
10794
|
10795
|
10822
|
10823
|
10824
|
10832
|
10833
|
10942
|
10970
|
10975
|
11011
|
11013
|
11014
|
11016
|
11018
|
11019
|
11020
|
11021
|
11022
|
11023
|
11084
|
11729
|
11823
|
11987
|
12024
|
12561
|
26777