Project

General

Profile

1 4818 daigle
/*
2
 * db_version -- table to store the version history of this database
3
 */
4
CREATE SEQUENCE db_version_id_seq;
5
CREATE TABLE db_version (
6
  db_version_id   INT8 default nextval ('db_version_id_seq'), -- the identifier for the version
7
  version         VARCHAR(250),     -- the version number
8
  status          INT8,             -- status of the version
9
  date_created    TIMESTAMP,        -- the datetime on which the version was created
10
  CONSTRAINT db_version_pk PRIMARY KEY (db_version_id)
11
);
12
13
INSERT INTO db_version (version, status, date_created)
14
  VALUES ('1.9.0', 1, CURRENT_DATE);
15
16
INSERT INTO xml_catalog (entry_type, public_id, system_id)
17
  VALUES ('Schema', '@eml2_1_0namespace@', '/schema/eml-2.1.0/eml.xsd');
18
19
INSERT INTO xml_catalog (entry_type, public_id, system_id)
20
  VALUES ('Schema', 'http://ecoinformatics.org/registryentry-1.0.0', '/schema/RegistryService/RegistryEntryType.xsd');