Project

General

Profile

Revision 7b9ed797

ID7b9ed797193cb3a342f5e6bd35551eabcf646a7b
Parent c5564cac
Child 39cb02e8

Added by Andreas Müller about 2 years ago

ref #7334 remove TaxonBase.proParte and partial and ref #8398 add codeEditon to nomStatus and nameRelations

View differences:

cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/database/update/v50_55/SchemaUpdater_50_55.java
83 83
        step = ColumnRemover.NewInstance(stepName, tableName, oldColumnName, INCLUDE_AUDIT);
84 84
        stepList.add(step);
85 85

  
86
        //TODO remove proparte and partial columns
87

  
88 86
        //#7772 rename TermBase_inverseRepresentation to DefinedTermBase_InverseRepresentation
89 87
        stepName = "Rename TermBase_inverseRepresentation to DefinedTermBase_InverseRepresentation";
90 88
        String oldName = "TermBase_inverseRepresentation";
cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/database/update/v55_58/SchemaUpdater_55_58.java
17 17
import eu.etaxonomy.cdm.common.UTF8;
18 18
import eu.etaxonomy.cdm.database.update.ColumnAdder;
19 19
import eu.etaxonomy.cdm.database.update.ColumnNameChanger;
20
import eu.etaxonomy.cdm.database.update.ColumnRemover;
20 21
import eu.etaxonomy.cdm.database.update.ISchemaUpdater;
21 22
import eu.etaxonomy.cdm.database.update.ISchemaUpdaterStep;
22 23
import eu.etaxonomy.cdm.database.update.SchemaUpdaterBase;
......
187 188
       step = ColumnAdder.NewBooleanInstance(stepName, tableName, newColumnName, INCLUDE_AUDIT, false);
188 189
       stepList.add(step);
189 190

  
191
       //#8398
192
       stepName = "Add code edition to nomenclatural status";
193
       tableName = "NomenclaturalStatus";
194
       newColumnName = "codeEdition";
195
       int length = 20;
196
       step = ColumnAdder.NewStringInstance(stepName, tableName, newColumnName, length, INCLUDE_AUDIT);
197
       stepList.add(step);
198

  
199
       //#8398
200
       stepName = "Add code edition to name relations";
201
       tableName = "NameRelationship";
202
       step = ColumnAdder.NewStringInstance(stepName, tableName, newColumnName, length, INCLUDE_AUDIT);
203
       stepList.add(step);
204

  
205
       //#8398
206
       stepName = "Add code edition to hybrid relations";
207
       tableName = "HybridRelationship";
208
       step = ColumnAdder.NewStringInstance(stepName, tableName, newColumnName, length, INCLUDE_AUDIT);
209
       stepList.add(step);
210

  
211
       //remove proparte and partial from TaxonBase
212
       stepName = "Remove proparte from TaxonBase";
213
       tableName = "TaxonBase";
214
       oldColumnName = "proParte";
215
       step = ColumnRemover.NewInstance(stepName, tableName, oldColumnName, INCLUDE_AUDIT);
216
       stepList.add(step);
217

  
218
       stepName = "Remove proparte from TaxonBase";
219
       tableName = "TaxonBase";
220
       oldColumnName = "partial";
221
       step = ColumnRemover.NewInstance(stepName, tableName, oldColumnName, INCLUDE_AUDIT);
222
       stepList.add(step);
223

  
190 224
       return stepList;
191 225
	}
192 226

  
......
360 394
        step = ColumnNameChanger.NewIntegerInstance(stepName, tableName, oldColumnName, newColumnName, INCLUDE_AUDIT);
361 395
        stepList.add(step);
362 396

  
397

  
363 398
    }
364 399

  
365 400
    /**

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)