Revision dacb2825
Added by Andreas Müller over 2 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/metadata/CdmMetaData.java | ||
---|---|---|
53 | 53 |
* be handled by SCHEMA_VALIDATION.UPDATE |
54 | 54 |
* The last number represents the date of change. |
55 | 55 |
*/ |
56 |
private static final String dbSchemaVersion = CdmVersion.V_05_27_00.versionString;
|
|
56 |
private static final String dbSchemaVersion = CdmVersion.V_05_27_01.versionString;
|
|
57 | 57 |
|
58 | 58 |
public enum CdmVersion { |
59 | 59 |
V_05_12_00("5.12.0.0.20191202"), |
... | ... | |
71 | 71 |
V_05_23_00("5.23.0.0.20210422"), |
72 | 72 |
V_05_25_00("5.25.0.0.20210609"), |
73 | 73 |
V_05_25_01("5.25.1.0.20210702"), |
74 |
V_05_27_00("5.27.0.0.20210913") |
|
74 |
V_05_27_00("5.27.0.0.20210913"), |
|
75 |
V_05_27_01("5.27.1.0.20210922") |
|
75 | 76 |
; |
76 | 77 |
private String versionString; |
77 | 78 |
private CdmVersion(String versionString){ |
cdmlib-model/src/main/resources/terms/Rank.csv | ||
---|---|---|
44 | 44 |
"d1988a11-292b-46fa-8fb7-bc64ea6d8fc6",,"Species Group","Species Group","species group","AG" |
45 | 45 |
"b301f787-f319-4ccc-a10f-b4ed3b99a86d",,"Species","Species","sp.","SP" |
46 | 46 |
"72c248b9-027d-4402-b375-dd4f0850c9ad",,"Subspecific Aggregate","Subspecific Aggregate",,"IS" |
47 |
"08dcb4ff-ac58-48a3-93af-efb3d836ac84",,"Grex (infraspec)","Grex as used e.g. for Hieracium by German school (Zahn et al.)","grex","IS" |
|
48 |
"fc7cd06f-199c-4128-92b2-312ac42efc34",,"Subgrex","Subgrex (see Grex (infraspec))","subgrex","IS" |
|
47 |
"08dcb4ff-ac58-48a3-93af-efb3d836ac84",,"Grex (infraspec.)","Grex as used e.g. for Hieracium by German school (Zahn et al.)","grex","IS"
|
|
48 |
"fc7cd06f-199c-4128-92b2-312ac42efc34",,"Subgrex","Subgrex (see Grex (infraspec.))","subgrex","IS"
|
|
49 | 49 |
"462a7819-8b00-4190-8313-88b5be81fad5",,"Subspecies","Subspecies","subsp.","IS" |
50 | 50 |
"f28ebc9e-bd50-4194-9af1-42f5cb971a2c",,"Infraspecies","Infraspecies",,"IS" |
51 | 51 |
"965f2f38-7f97-4270-ab5a-1999bf050a22",,"Natio","Natio",,"IS" |
cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/database/update/v525_527/SchemaUpdater_5270_5271.java | ||
---|---|---|
1 |
/** |
|
2 |
* Copyright (C) 2007 EDIT |
|
3 |
* European Distributed Institute of Taxonomy |
|
4 |
* http://www.e-taxonomy.eu |
|
5 |
* |
|
6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
|
7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
|
8 |
*/ |
|
9 |
package eu.etaxonomy.cdm.database.update.v525_527; |
|
10 |
|
|
11 |
import java.util.ArrayList; |
|
12 |
import java.util.List; |
|
13 |
import java.util.UUID; |
|
14 |
|
|
15 |
import org.apache.log4j.Logger; |
|
16 |
|
|
17 |
import eu.etaxonomy.cdm.database.update.ISchemaUpdater; |
|
18 |
import eu.etaxonomy.cdm.database.update.ISchemaUpdaterStep; |
|
19 |
import eu.etaxonomy.cdm.database.update.SchemaUpdaterBase; |
|
20 |
import eu.etaxonomy.cdm.database.update.TermRepresentationUpdater; |
|
21 |
import eu.etaxonomy.cdm.database.update.v523_525.SchemaUpdater_5250_5251; |
|
22 |
import eu.etaxonomy.cdm.model.metadata.CdmMetaData.CdmVersion; |
|
23 |
|
|
24 |
/** |
|
25 |
* @author a.mueller |
|
26 |
* @date 22.04.2021 |
|
27 |
*/ |
|
28 |
public class SchemaUpdater_5270_5271 extends SchemaUpdaterBase { |
|
29 |
|
|
30 |
@SuppressWarnings("unused") |
|
31 |
private static final Logger logger = Logger.getLogger(SchemaUpdater_5270_5271.class); |
|
32 |
|
|
33 |
private static final CdmVersion startSchemaVersion = CdmVersion.V_05_27_00; |
|
34 |
private static final CdmVersion endSchemaVersion = CdmVersion.V_05_27_01; |
|
35 |
|
|
36 |
// ********************** FACTORY METHOD ************************************* |
|
37 |
|
|
38 |
public static SchemaUpdater_5270_5271 NewInstance() { |
|
39 |
return new SchemaUpdater_5270_5271(); |
|
40 |
} |
|
41 |
|
|
42 |
protected SchemaUpdater_5270_5271() { |
|
43 |
super(startSchemaVersion.versionString(), endSchemaVersion.versionString()); |
|
44 |
} |
|
45 |
|
|
46 |
@Override |
|
47 |
public ISchemaUpdater getPreviousUpdater() { |
|
48 |
return SchemaUpdater_5250_5251.NewInstance(); |
|
49 |
} |
|
50 |
|
|
51 |
@Override |
|
52 |
protected List<ISchemaUpdaterStep> getUpdaterList() { |
|
53 |
|
|
54 |
String stepName; |
|
55 |
|
|
56 |
List<ISchemaUpdaterStep> stepList = new ArrayList<>(); |
|
57 |
|
|
58 |
//#9755 Adapt grex representation |
|
59 |
stepName = "Adapt representation for grex (infraspec.)"; |
|
60 |
UUID uuidTerm = UUID.fromString("08dcb4ff-ac58-48a3-93af-efb3d836ac84"); |
|
61 |
String description = "Grex as used e.g. for Hieracium by German school (Zahn et al.)"; |
|
62 |
String label = "Grex (infraspec.)"; |
|
63 |
String abbrev = "gx"; |
|
64 |
UUID uuidLanguage = UUID.fromString("e9f8cdb7-6819-44e8-95d3-e2d0690c3523"); |
|
65 |
TermRepresentationUpdater.NewInstance(stepList, stepName, uuidTerm, description, label, abbrev, uuidLanguage, true); |
|
66 |
|
|
67 |
return stepList; |
|
68 |
} |
|
69 |
} |
Also available in: Unified diff
ref #9755 update script for grex infraspec. representation