diff artifact-database/doc/schema-pg.sql @ 199:face2302387c

Insert collection attribute into database, too. Fixed broken SQL schema. artifacts/trunk@1437 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 09 Mar 2011 11:14:21 +0000
parents a85d889a1b0d
children 328ef982d768
line wrap: on
line diff
--- a/artifact-database/doc/schema-pg.sql	Wed Mar 09 11:03:25 2011 +0000
+++ b/artifact-database/doc/schema-pg.sql	Wed Mar 09 11:14:21 2011 +0000
@@ -24,7 +24,7 @@
     id   int PRIMARY KEY NOT NULL,
     gid  uuid            NOT NULL UNIQUE,
     name VARCHAR(256)    NOT NULL UNIQUE,
-    role BINARY
+    role bytea
 );
 
 CREATE SEQUENCE COLLECTIONS_ID_SEQ;
@@ -37,6 +37,7 @@
     creation    timestamp       NOT NULL,
     last_access timestamp       NOT NULL,
     ttl         bigint, -- NULL means eternal
+    attribute   bytea
 );
 
 CREATE SEQUENCE COLLECTION_ITEMS_ID_SEQ;
@@ -45,7 +46,7 @@
     id            int PRIMARY KEY NOT NULL,
     collection_id int             NOT NULL REFERENCES collections(id),
     artifact_id   int             NOT NULL REFERENCES artifacts(id),
-    attribute     BINARY,
+    attribute     bytea,
     UNIQUE (collection_id, artifact_id)
 );
 

http://dive4elements.wald.intevation.org