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.v523_525;
|
10
|
|
11
|
import java.util.ArrayList;
|
12
|
import java.util.List;
|
13
|
|
14
|
import org.apache.log4j.Logger;
|
15
|
|
16
|
import eu.etaxonomy.cdm.database.update.ISchemaUpdater;
|
17
|
import eu.etaxonomy.cdm.database.update.ISchemaUpdaterStep;
|
18
|
import eu.etaxonomy.cdm.database.update.SchemaUpdaterBase;
|
19
|
import eu.etaxonomy.cdm.database.update.v522_523.SchemaUpdater_5220_5230;
|
20
|
import eu.etaxonomy.cdm.model.metadata.CdmMetaData.CdmVersion;
|
21
|
|
22
|
/**
|
23
|
* @author a.mueller
|
24
|
* @date 22.04.2021
|
25
|
*/
|
26
|
public class SchemaUpdater_5230_5250 extends SchemaUpdaterBase {
|
27
|
|
28
|
@SuppressWarnings("unused")
|
29
|
private static final Logger logger = Logger.getLogger(SchemaUpdater_5230_5250.class);
|
30
|
|
31
|
private static final CdmVersion startSchemaVersion = CdmVersion.V_05_23_00;
|
32
|
private static final CdmVersion endSchemaVersion = CdmVersion.V_05_25_00;
|
33
|
|
34
|
// ********************** FACTORY METHOD *************************************
|
35
|
|
36
|
public static SchemaUpdater_5230_5250 NewInstance() {
|
37
|
return new SchemaUpdater_5230_5250();
|
38
|
}
|
39
|
|
40
|
protected SchemaUpdater_5230_5250() {
|
41
|
super(startSchemaVersion.versionString(), endSchemaVersion.versionString());
|
42
|
}
|
43
|
|
44
|
@Override
|
45
|
protected List<ISchemaUpdaterStep> getUpdaterList() {
|
46
|
|
47
|
String stepName;
|
48
|
String tableName;
|
49
|
String newColumnName;
|
50
|
|
51
|
List<ISchemaUpdaterStep> stepList = new ArrayList<>();
|
52
|
|
53
|
|
54
|
|
55
|
return stepList;
|
56
|
}
|
57
|
|
58
|
@Override
|
59
|
public ISchemaUpdater getPreviousUpdater() {
|
60
|
return SchemaUpdater_5220_5230.NewInstance();
|
61
|
}
|
62
|
}
|