Project

General

Profile

1
DROP TABLE identifier;
2

    
3
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
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
 * Register the DataONE schemas
19
 */
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_4/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_4/common.xsd');
25
INSERT INTO xml_catalog (entry_type, public_id, system_id)
26
  VALUES ('Schema', 'http://www.loc.gov/METS/', '/schema/D1_SCHEMA_0_4/dryadMetsAny.xsd');
27
  
28
/*
29
 * update the database version
30
 */
31
UPDATE db_version SET status=0;
32

    
33
INSERT INTO db_version (version, status, date_created) 
34
  VALUES ('1.10.0', 1, CURRENT_DATE);
35

    
(23-23/50)