From 6c781b6b845ebf8787117b2ab42e6b68a89d2c4b Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Thu, 16 Apr 2015 16:36:44 -0400 Subject: [PATCH] fix constraint name; drop buildroot_extra_info.v_type; drop some obsolete comments --- docs/schema.sql | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/docs/schema.sql b/docs/schema.sql index 3facb9c5..91f260be 100644 --- a/docs/schema.sql +++ b/docs/schema.sql @@ -489,14 +489,12 @@ CREATE TABLE buildroot ( br_type INTEGER NOT NULL cg_id INTEGER REFERENCES content_generator (id), cg_version version TEXT, - --^ XXX should cg_version be integer? array? CONSTRAINT cg_sane CHECK ( (cg_id IS NULL AND cg_version IS NULL) OR (cg_id IS NOT NULL AND cg_version IS NOT NULL)), container_type TEXT, - -- XXX should container_type be lookup table or perhaps a lib Enum? container_arch TEXT, - CONSTRAINT cg_sane CHECK ( + CONSTRAINT container_sane CHECK ( (container_type IS NULL AND container_arch IS NULL) OR (container_type IS NOT NULL AND container_arch IS NOT NULL)), host_os TEXT, @@ -524,8 +522,6 @@ CREATE TABLE buildroot_extra_info ( buildroot_id INTEGER NOT NULL PRIMARY KEY REFERENCES buildroot(id), key TEXT NOT NULL, value TEXT NOT NULL, - v_type INTEGER, - -- XXX is it worth having the v_type field? PRIMARY KEY (buildroot_id, key) ) WITHOUT OIDS;