Project

General

Profile

Revision d3e523d7

IDd3e523d75229db85b8281ad80d0fbbfbe22e1536
Parent c150ee7f
Child 3b18f20b

Added by Andreas Müller over 8 years ago

rename FieldObservation -> FieldUnit #3351

View differences:

cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/database/update/v31_33/SchemaUpdater_31_33.java
187 187
		
188 188
		//TODO add specimenOrObservation basis of record to SpecimenOrObservationBase
189 189
		
190
		//TODO update specimenOrObservationBase DTYPE with DefinedTerm where necessary
191

  
192

  
193
		//TODO update DTYPE FieldObservation -> FieldUnit #3351
194
		stepName = "Update FieldObservation -> FieldUnit";
195
		query = " UPDATE SpecimenOrObservationBase sob " + 
196
				" SET sob.DTYPE = 'FieldUnit' " +
197
				" WHERE sob.DTYPE = 'FieldObservation' ";
198
		step = SimpleSchemaUpdaterStep.NewInstance(stepName, query);
199
		stepList.add(step);
200

  
201
		
190 202
		//add kindOfUnit to SpecimenOrObservationBase
191 203
		stepName = "Add kindOfUnit column to SpecimenOrObservationBase";
192 204
		tableName = "SpecimenOrObservationBase";
......
194 206
		String relatedTable = "DefinedTermBase";
195 207
		step = ColumnAdder.NewIntegerInstance(stepName, tableName, columnName, INCLUDE_AUDIT,  true, relatedTable); 
196 208
		stepList.add(step);
197

  
198
				
209
		
199 210
		return stepList;
200 211
	}
201 212

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)