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-postgres.sql
324 324
	member_node VARCHAR(250),	 -- replication member node
325 325
	policy text,	 -- the policy (preferred, blocked, etc...TBD)
326 326
	CONSTRAINT systemMetadataReplicationPolicy_fk 
327
		FOREIGN KEY (guid) REFERENCES systemMetadata
327
		FOREIGN KEY (guid) REFERENCES systemMetadata DEFERRABLE
328 328
);
329 329

  
330 330
CREATE TABLE systemMetadataReplicationStatus (
......
333 333
	status VARCHAR(250),	 -- replication status
334 334
	date_verified TIMESTAMP, 	-- the date replication was verified   
335 335
	CONSTRAINT systemMetadataReplicationStatus_fk 
336
		FOREIGN KEY (guid) REFERENCES systemMetadata
336
		FOREIGN KEY (guid) REFERENCES systemMetadata DEFERRABLE
337 337
);
338 338

  
339 339
/*

Also available in: Unified diff