Project

General

Profile

« Previous | Next » 

Revision 6933

Added by Matt Jones about 11 years ago

Added DOI generation to the 2.0.0 upgrade process. To succeed, this script must be run on a fresh 2.0.0 database, or on a 1.9.5 version database, as those are the only ways to get the needed foreign keys to be marked as deferrable. The identifier conversion must be turned on by setting correct properties in metacat.properties. See the comments in GenerateGlobalIdentifiers for details. By default, conversion is set to false in the properties file. If you want to convert an instance to use DOIs, be sure to set metacat.properties up BEFORE running through the Metacat configuration and database upgrade.

View differences:

upgrade-db-to-2.0.0-oracle.sql
25 25
	member_node VARCHAR(250),	 -- replication member node
26 26
	policy VARCHAR2(2000),	 -- the policy (preferred, blocked, etc...TBD)
27 27
	CONSTRAINT systemMetadataReplicationPolicy_fk 
28
		FOREIGN KEY (guid) REFERENCES systemMetadata
28
		FOREIGN KEY (guid) REFERENCES systemMetadata DEFERRABLE
29 29
);
30 30

  
31 31
CREATE TABLE systemMetadataReplicationStatus (
......
34 34
	status VARCHAR(250),	 -- replication status
35 35
	date_verified DATE, 	-- the date replication was verified   
36 36
	CONSTRAINT systemMetadataReplicationStatus_fk 
37
		FOREIGN KEY (guid) REFERENCES systemMetadata
37
		FOREIGN KEY (guid) REFERENCES systemMetadata DEFERRABLE
38 38
);
39 39

  
40 40
DROP TABLE identifier;

Also available in: Unified diff