Project

General

Profile

« Previous | Next » 

Revision dd1494d6

Added by Andreas Müller over 2 years ago

add schema updater for next schema update

View differences:

cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/database/update/v527_529/SchemaUpdater_5271_5290.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.v527_529;
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.v525_527.SchemaUpdater_5270_5271;
20
import eu.etaxonomy.cdm.model.metadata.CdmMetaData.CdmVersion;
21

  
22
/**
23
 * @author a.mueller
24
 * @date 27.10.2021
25
 */
26
public class SchemaUpdater_5271_5290 extends SchemaUpdaterBase {
27

  
28
	@SuppressWarnings("unused")
29
	private static final Logger logger = Logger.getLogger(SchemaUpdater_5271_5290.class);
30

  
31
	private static final CdmVersion startSchemaVersion = CdmVersion.V_05_27_01;
32
	private static final CdmVersion endSchemaVersion = CdmVersion.V_05_27_01;
33

  
34
// ********************** FACTORY METHOD *************************************
35

  
36
	public static SchemaUpdater_5271_5290 NewInstance() {
37
		return new SchemaUpdater_5271_5290();
38
	}
39

  
40
	protected SchemaUpdater_5271_5290() {
41
		super(startSchemaVersion.versionString(), endSchemaVersion.versionString());
42
	}
43

  
44
    @Override
45
    public ISchemaUpdater getPreviousUpdater() {
46
        return SchemaUpdater_5270_5271.NewInstance();
47
    }
48

  
49
	@Override
50
	protected List<ISchemaUpdaterStep> getUpdaterList() {
51

  
52
		String stepName;
53

  
54
		List<ISchemaUpdaterStep> stepList = new ArrayList<>();
55

  
56
        return stepList;
57
    }
58
}

Also available in: Unified diff