1 |
5276
|
jones
|
DROP TABLE identifier;
|
2 |
|
|
|
3 |
5371
|
berkley
|
CREATE TABLE systemMetadata (
|
4 |
|
|
guid text, -- the globally unique string identifier
|
5 |
|
|
docid VARCHAR(250), -- the local document id #
|
6 |
|
|
rev INT8, -- the revision part of the local identifier
|
7 |
|
|
CONSTRAINT systemMetadata_pk PRIMARY KEY (guid)
|
8 |
|
|
);
|
9 |
|
|
|
10 |
5276
|
jones
|
CREATE TABLE identifier (
|
11 |
|
|
guid text, -- the globally unique string identifier
|
12 |
|
|
docid VARCHAR(250), -- the local document id #
|
13 |
|
|
rev INT8, -- the revision part of the local identifier
|
14 |
|
|
CONSTRAINT identifier_pk PRIMARY KEY (guid)
|
15 |
|
|
);
|
16 |
|
|
|
17 |
|
|
/*
|
18 |
5400
|
jones
|
* Register the DataONE schemas
|
19 |
|
|
*/
|
20 |
5516
|
berkley
|
|
21 |
5400
|
jones
|
INSERT INTO xml_catalog (entry_type, public_id, system_id)
|
22 |
5657
|
berkley
|
VALUES ('Schema', 'http://dataone.org/service/types/0.5.1', '/schema/D1_SCHEMA_0_5_1/dataoneTypes.xsd');
|
23 |
5709
|
leinfelder
|
|
24 |
|
|
INSERT INTO xml_catalog (entry_type, public_id, system_id)
|
25 |
|
|
VALUES ('Schema', '@eml2_1_1namespace@', '/schema/eml-2.1.1/eml.xsd');
|
26 |
5400
|
jones
|
/*
|
27 |
5276
|
jones
|
* update the database version
|
28 |
|
|
*/
|
29 |
|
|
UPDATE db_version SET status=0;
|
30 |
|
|
|
31 |
|
|
INSERT INTO db_version (version, status, date_created)
|
32 |
|
|
VALUES ('1.10.0', 1, CURRENT_DATE);
|