1
|
/*
|
2
|
* Alter the system metadata table to suport seriesId
|
3
|
*/
|
4
|
ALTER TABLE systemMetadata ADD COLUMN series_id text, ADD COLUMN media_type text, ADD COLUMN file_name text;
|
5
|
|
6
|
/*
|
7
|
* Add an entry for dataone schema v2
|
8
|
*/
|
9
|
INSERT INTO xml_catalog (entry_type, public_id, system_id)
|
10
|
VALUES ('Schema', 'http://ns.dataone.org/service/types/v2.0', '/schema/dataone/dataoneTypes_v2.0.xsd');
|
11
|
/*
|
12
|
* update the database version
|
13
|
*/
|
14
|
UPDATE db_version SET status=0;
|
15
|
|
16
|
INSERT INTO db_version (version, status, date_created)
|
17
|
VALUES ('2.5.0', 1, CURRENT_DATE);
|