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:

xmltables-oracle.sql
427 427
	member_node VARCHAR(250),	 -- replication member node
428 428
	policy VARCHAR2(2000),	 -- the policy (preferred, blocked, etc...TBD)
429 429
	CONSTRAINT systemMetadataReplicationPolicy_fk 
430
		FOREIGN KEY (guid) REFERENCES systemMetadata
430
		FOREIGN KEY (guid) REFERENCES systemMetadata DEFERRABLE
431 431
);
432 432

  
433 433
CREATE TABLE systemMetadataReplicationStatus (
......
436 436
	status VARCHAR(250),	 -- replication status
437 437
	date_verified DATE, 	-- the date replication was verified   
438 438
	CONSTRAINT systemMetadataReplicationStatus_fk 
439
		FOREIGN KEY (guid) REFERENCES systemMetadata
439
		FOREIGN KEY (guid) REFERENCES systemMetadata DEFERRABLE
440 440
);
441 441

  
442 442
/*

Also available in: Unified diff