Project

General

Profile

1 5276 jones
DROP SEQUENCE identifier_id_seq;
2
DROP TRIGGER identifier_before_insert;
3
DROP TABLE identifier;
4
5
/*
6
 * Table used to store all document identifiers in metacat.  Each identifier
7
 * has a globally unique, unconstrained string, which we will refer to as a
8
 * GUID, and a local metacat identifier, which consists of the docid
9
 * and revision fields. Each row maps one global identifier to the local
10
 * identifier (docid) used within metacat.
11
 */
12
CREATE TABLE identifier (
13
   guid   VARCHAR2(2000), -- the globally unique string identifier
14
   docid  VARCHAR2(250),  -- the local document id #
15
   rev    NUMBER(8)       -- the revision part of the local identifier
16
);
17
18
/*
19
 * update the database version
20
 */
21
UPDATE db_version SET status=0;
22
23
INSERT INTO db_version (version, status, date_created)
24
  VALUES ('1.10.0', 1, CURRENT_DATE);