Project

General

Profile

1 5276 jones
DROP TABLE identifier;
2
DROP SEQUENCE identifier_id_seq;
3 5371 berkley
DROP TABLE systemMetadata;
4
DROP SEQUENCE systemMetadata_id_seq;
5 5276 jones
6 5371 berkley
CREATE TABLE systemMetadata (
7
   guid   text,          -- the globally unique string identifier
8
   docid  VARCHAR(250),	 -- the local document id #
9
   rev    INT8,          -- the revision part of the local identifier
10
   CONSTRAINT systemMetadata_pk PRIMARY KEY (guid)
11
);
12
13 5276 jones
CREATE TABLE identifier (
14
   guid   text,          -- the globally unique string identifier
15
   docid  VARCHAR(250),  -- the local document id #
16
   rev    INT8,          -- the revision part of the local identifier
17
   CONSTRAINT identifier_pk PRIMARY KEY (guid)
18
);
19
20
/*
21
 * update the database version
22
 */
23
UPDATE db_version SET status=0;
24
25
INSERT INTO db_version (version, status, date_created)
26
  VALUES ('1.10.0', 1, CURRENT_DATE);