1
|
DROP TABLE identifier;
|
2
|
DROP SEQUENCE identifier_id_seq;
|
3
|
DROP TABLE systemMetadata;
|
4
|
DROP SEQUENCE systemMetadata_id_seq;
|
5
|
|
6
|
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
|
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);
|