Project

General

Profile

Revision fd87156d

IDfd87156d8df7f20334fd6f937364063afa6339e9
Parent 4d246beb
Child e54f6df0

Added by Andreas Müller 7 months ago

ref #8142 update script for Representation.plural and ref #8017 TypeDesignation.sources

View differences:

cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/database/update/v50_51/SchemaUpdater_50_55.java
21 21
import eu.etaxonomy.cdm.database.update.ColumnTypeChanger;
22 22
import eu.etaxonomy.cdm.database.update.ISchemaUpdater;
23 23
import eu.etaxonomy.cdm.database.update.ISchemaUpdaterStep;
24
import eu.etaxonomy.cdm.database.update.MnTableCreator;
24 25
import eu.etaxonomy.cdm.database.update.SchemaUpdaterBase;
25 26
import eu.etaxonomy.cdm.database.update.SimpleSchemaUpdaterStep;
26 27
import eu.etaxonomy.cdm.database.update.TableNameChanger;
......
177 178
        step = ColumnAdder.NewIntegerInstance(stepName, tableName, newColumnName, INCLUDE_AUDIT, !NOT_NULL, referedTableName);
178 179
        stepList.add(step);
179 180

  
181
        //#8142 add plural to representations
182
        stepName = "Add plural to representations";
183
        tableName = "Representation";
184
        newColumnName = "plural";
185
        step = ColumnAdder.NewStringInstance(stepName, tableName, newColumnName, INCLUDE_AUDIT);
186
        stepList.add(step);
187

  
188
        //#8017 add type designation sources
189
        stepName = "Add plural type designation sources";
190
        String firstTableName = "TypeDesignationBase";
191
        String secondTableName = "OriginalSourceBase";
192
        step = MnTableCreator.NewMnInstance(stepName, firstTableName, null, secondTableName, null, "sources", INCLUDE_AUDIT, !IS_LIST, IS_1_TO_M);
193
        stepList.add(step);
180 194

  
181 195
        return stepList;
182 196

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)