Project

General

Profile

1
DROP TABLE identifier;
2
DROP SEQUENCE identifier_id_seq;
3

    
4
CREATE TABLE systemMetadata (
5
   guid   text,          -- the globally unique string identifier
6
   docid  VARCHAR(250),	 -- the local document id #
7
   rev    INT8,          -- the revision part of the local identifier
8
   CONSTRAINT systemMetadata_pk PRIMARY KEY (guid)
9
);
10

    
11
CREATE TABLE identifier (
12
   guid   text,          -- the globally unique string identifier
13
   docid  VARCHAR(250),  -- the local document id #
14
   rev    INT8,          -- the revision part of the local identifier
15
   CONSTRAINT identifier_pk PRIMARY KEY (guid)
16
);
17

    
18
/*
19
 * Register the DataONE schemas
20
 */
21
INSERT INTO xml_catalog (entry_type, public_id, system_id)
22
  VALUES ('Schema', 'http://dataone.org/service/types/SystemMetadata/0.1', '/schema/D1_SCHEMA_0_1/systemmetadata.xsd');
23
INSERT INTO xml_catalog (entry_type, public_id, system_id)
24
  VALUES ('Schema', 'http://dataone.org/service/types/common/0.1', '/schema/D1_SCHEMA_0_1/common.xsd');
25

    
26
/*
27
 * 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);
33

    
(23-23/48)