Project

General

Profile

1
DROP TRIGGER identifier_before_insert;
2
DROP TABLE identifier;
3

    
4
CREATE TABLE systemMetadata (
5
   guid   VARCHAR2(2000),    -- the globally unique string identifier
6
   docid  VARCHAR(250), 	 -- the local document id #
7
   rev    NUMBER(8)          -- the revision part of the local identifier
8
)
9

    
10
CREATE TABLE identifier (
11
   guid   VARCHAR2(2000), -- the globally unique string identifier
12
   docid  VARCHAR2(250),  -- the local document id #
13
   rev    NUMBER(8)       -- the revision part of the local identifier
14
);
15

    
16
/*
17
 * Register the DataONE schemas
18
 */
19
INSERT INTO xml_catalog (entry_type, public_id, system_id)
20
  VALUES ('Schema', 'http://dataone.org/service/types/0.5.1', '/schema/D1_SCHEMA_0_5_1/dataoneTypes.xsd');
21

    
22
INSERT INTO xml_catalog (entry_type, public_id, system_id)
23
  VALUES ('Schema', '@eml2_1_1namespace@', '/schema/eml-2.1.1/eml.xsd');
24

    
25
/*
26
 * update the database version
27
 */
28
UPDATE db_version SET status=0;
29

    
30
INSERT INTO db_version (version, status, date_created) 
31
  VALUES ('1.10.0', 1, CURRENT_DATE);
(22-22/50)