Revision 6933
Added by Matt Jones about 12 years ago
Upgrade2_0_0.java | ||
---|---|---|
45 | 45 |
|
46 | 46 |
// dataone system metadata generation |
47 | 47 |
GenerateSystemMetadata systemMetadataUpgrade = new GenerateSystemMetadata(); |
48 |
systemMetadataUpgrade.upgrade(); |
|
48 |
systemMetadataUpgrade.upgrade(); // TODO: why aren't we checking success return value here?
|
|
49 | 49 |
|
50 |
// Optionally upgrade GUIDs to use DOI syntax if configured |
|
51 |
GenerateGlobalIdentifiers globalIDUpgrade = new GenerateGlobalIdentifiers(); |
|
52 |
success = success && globalIDUpgrade.upgrade(); |
|
53 |
|
|
50 | 54 |
return success; |
51 | 55 |
} |
52 | 56 |
|
Also available in: Unified diff
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.