1 |
5276
|
jones
|
DROP TRIGGER identifier_before_insert;
|
2 |
|
|
DROP TABLE identifier;
|
3 |
|
|
|
4 |
5371
|
berkley
|
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 |
5276
|
jones
|
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 |
5400
|
jones
|
* Register the DataONE schemas
|
18 |
|
|
*/
|
19 |
|
|
INSERT INTO xml_catalog (entry_type, public_id, system_id)
|
20 |
5524
|
berkley
|
VALUES ('Schema', 'http://dataone.org/service/types/SystemMetadata/0.1', '/schema/D1_SCHEMA_0_4/systemmetadata.xsd');
|
21 |
5400
|
jones
|
INSERT INTO xml_catalog (entry_type, public_id, system_id)
|
22 |
5524
|
berkley
|
VALUES ('Schema', 'http://dataone.org/service/types/common/0.1', '/schema/D1_SCHEMA_0_4/common.xsd');
|
23 |
|
|
INSERT INTO xml_catalog (entry_type, public_id, system_id)
|
24 |
5526
|
berkley
|
VALUES ('Schema', 'http://www.loc.gov/METS/', '/schema/D1_SCHEMA_0_4/dryadMetsAny.xsd');
|
25 |
5524
|
berkley
|
|
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);
|