comparison artifact-database/doc/schema-pg.sql @ 38:93edc04f3a10

Added postgresql support. artifacts/trunk@104 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 18 Sep 2009 09:34:14 +0000
parents
children 5e4bc24ea438
comparison
equal deleted inserted replaced
37:3f03aee55c2f 38:93edc04f3a10
1 --
2 -- schema to store artifacts in PostgreSQL databases.
3 --
4
5 BEGIN;
6
7 -- not using AUTO_INCREMENT to be more compatible with
8 -- other dbms.
9 CREATE SEQUENCE ARTIFACTS_ID_SEQ;
10
11 CREATE TABLE artifacts (
12 id int PRIMARY KEY NOT NULL,
13 gid uuid NOT NULL UNIQUE,
14 creation timestamp NOT NULL,
15 last_access timestamp NOT NULL,
16 ttl bigint, -- NULL means eternal
17 data bytea
18 );
19
20 COMMIT;

http://dive4elements.wald.intevation.org