Project

General

Profile

1
/*
2
 * Add onedcx XML schema to xml_catalog table
3
 */
4
 INSERT INTO xml_catalog (entry_type, public_id, system_id) VALUES ('Schema', 'http://ns.dataone.org/metadata/schema/onedcx/v1.0', '/schema/onedcx/onedcx.xsd');
5

    
6
/*
7
 * Ensure xml_catalog sequence is at table max
8
 */
9
SELECT setval('xml_catalog_id_seq', (SELECT max(catalog_id) from xml_catalog));
10

    
11

    
12
/*
13
 * update the database version
14
 */
15
UPDATE db_version SET status=0;
16

    
17
INSERT INTO db_version (version, status, date_created) 
18
  VALUES ('2.7.1', 1, CURRENT_DATE);
(99-99/106)