User Tools

Site Tools


dev:proposal:patron_statistical_categories

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
dev:proposal:patron_statistical_categories [2012/03/18 18:40] – [Objects Affected] spraterdev:proposal:patron_statistical_categories [2012/03/20 23:32] – [Objects Affected] update table definition sprater
Line 51: Line 51:
 **NEW Database TABLE ''actor.stat_cat_entry_default''** **NEW Database TABLE ''actor.stat_cat_entry_default''**
   * Create a new table ''actor.stat_cat_entry_default'' to store default entries for statistical categories.  It will have the following structure:   * Create a new table ''actor.stat_cat_entry_default'' to store default entries for statistical categories.  It will have the following structure:
 +  * 
         id              SERIAL  PRIMARY KEY,         id              SERIAL  PRIMARY KEY,
-        stat_cat_entry  INT     NOT NULL references actor.stat_cat_entry, +        stat_cat_entry  INT     NOT NULL REFERENCES actor.stat_cat_entry(id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED
-        stat_cat        INT     NOT NULL references actor.stat_cat, +        stat_cat        INT     NOT NULL REFERENCES actor.stat_cat(id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED
-        org_unit        INT     NOT NULL references actor.org_unit, +        owner           INT     NOT NULL REFERENCES actor.org_unit(id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED
-        CONSTRAINT sced_once_per_org_unit UNIQUE (stat_cat,org_unit)+        CONSTRAINT sced_once_per_owner UNIQUE (stat_cat,owner)
  
 See [[https://github.com/sprater/Evergreen/blob/patcatstat/Open-ILS/src/sql/Pg/005.schema.actors.sql|005.schema.actors.sql]] and [[https://github.com/sprater/Evergreen/blob/patcatstat/Open-ILS/src/sql/Pg/950.data.seed-values.sql|950.data.seed-values.sql]]. See [[https://github.com/sprater/Evergreen/blob/patcatstat/Open-ILS/src/sql/Pg/005.schema.actors.sql|005.schema.actors.sql]] and [[https://github.com/sprater/Evergreen/blob/patcatstat/Open-ILS/src/sql/Pg/950.data.seed-values.sql|950.data.seed-values.sql]].
dev/proposal/patron_statistical_categories.txt · Last modified: 2022/02/10 13:34 by 127.0.0.1

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

© 2008-2022 GPLS and others. Evergreen is open source software, freely licensed under GNU GPLv2 or later.
The Evergreen Project is a U.S. 501(c)3 non-profit organization.