Mercurial > ~dholland > hg > swallowtail > index.cgi
view database/schema/config.sql @ 21:ecae2581f825
minor edit from wiz's comments
author | David A. Holland |
---|---|
date | Tue, 04 Sep 2012 13:33:12 -0400 |
parents | d42c0db81e28 |
children | 68a4f2d8930e |
line wrap: on
line source
-- -- These tables record the allowable values for the various -- enumerated settings. -- -- Each entry has the value string (the name), a description field, -- and a flag to mark the entry obsolete. Obsolete values are still -- allowed to exist in the database, but new uses are not permitted. -- ---- These are now handled in classify.sql -- -- -- Severity ratings of bugs -- CREATE TABLE severities ( -- name text primary key, -- obsolete boolean not null, -- description text -- ) -- WITHOUT OIDS; -- -- -- Priority ratings of bugs -- CREATE TABLE priorities ( -- name text primary key, -- obsolete boolean not null, -- description text -- ) -- WITHOUT OIDS; -- -- -- Types of bugs (sw-bug, doc-bug, etc.) -- CREATE TABLE classes ( -- name text primary key, -- obsolete boolean not null, -- description text -- ) WITHOUT OIDS; -- -- -- Categories of bugs (bin, kern, pkg, etc.) -- CREATE TABLE categories ( -- name text primary key, -- obsolete boolean not null, -- description text -- ) WITHOUT OIDS; -- States of bugs -- -- The additional booleans govern the semantics of the defined states. -- closed resolved (one way or another) -- nagresponsible the "responsible" users should get nag-mail -- nagsubmitter the "submitter" users should get nag-mail -- -- It is reasonable for multiple states to have the same settings; -- such states presumably mean different things in ways the database -- doesn't need to know about. -- -- For example: "open" might be defined as -- ("open", false, "bug is unresolved", false, true, false) -- and "feedback" as -- ("feedback", false, "awaiting submitter feedback", false, false, true) -- CREATE TABLE states ( name text primary key, obsolete boolean not null, description text , closed boolean not null, nagresponsible boolean not null, nagsubmitter boolean not null ) WITHOUT OIDS;