DROP TABLE identifier; CREATE TABLE systemMetadata ( guid text, -- the globally unique string identifier docid VARCHAR(250), -- the local document id # rev INT8, -- the revision part of the local identifier CONSTRAINT systemMetadata_pk PRIMARY KEY (guid) ); CREATE TABLE identifier ( guid text, -- the globally unique string identifier docid VARCHAR(250), -- the local document id # rev INT8, -- the revision part of the local identifier CONSTRAINT identifier_pk PRIMARY KEY (guid) ); /* * Register the DataONE schemas */ INSERT INTO xml_catalog (entry_type, public_id, system_id) VALUES ('Schema', 'http://dataone.org/service/types/0.5.1', '/schema/D1_SCHEMA_0_5_1/dataoneTypes.xsd'); INSERT INTO xml_catalog (entry_type, public_id, system_id) VALUES ('Schema', '@eml2_1_1namespace@', '/schema/eml-2.1.1/eml.xsd'); /* * update the database version */ UPDATE db_version SET status=0; INSERT INTO db_version (version, status, date_created) VALUES ('1.10.0', 1, CURRENT_DATE);