Merge pull request #1407 from jamesagnew/dm-add-trm-codesystem-ver-cs-display-to-migration-tool
Resolve "Add TRM_CODESYSTEM_VER.CS_DISPLAY to migration tool."
This commit is contained in:
commit
52fc057457
|
@ -40,7 +40,7 @@ import static org.apache.commons.lang3.StringUtils.length;
|
||||||
public class TermCodeSystemVersion implements Serializable {
|
public class TermCodeSystemVersion implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
static final int MAX_VERSION_LENGTH = 200;
|
public static final int MAX_VERSION_LENGTH = 200;
|
||||||
|
|
||||||
@OneToMany(fetch = FetchType.LAZY, mappedBy = "myCodeSystem")
|
@OneToMany(fetch = FetchType.LAZY, mappedBy = "myCodeSystem")
|
||||||
private Collection<TermConcept> myConcepts;
|
private Collection<TermConcept> myConcepts;
|
||||||
|
|
|
@ -20,10 +20,7 @@ package ca.uhn.fhir.jpa.migrate.tasks;
|
||||||
* #L%
|
* #L%
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import ca.uhn.fhir.jpa.entity.TermCodeSystem;
|
import ca.uhn.fhir.jpa.entity.*;
|
||||||
import ca.uhn.fhir.jpa.entity.TermConcept;
|
|
||||||
import ca.uhn.fhir.jpa.entity.TermValueSet;
|
|
||||||
import ca.uhn.fhir.jpa.entity.TermValueSetConceptDesignation;
|
|
||||||
import ca.uhn.fhir.jpa.migrate.DriverTypeEnum;
|
import ca.uhn.fhir.jpa.migrate.DriverTypeEnum;
|
||||||
import ca.uhn.fhir.jpa.migrate.taskdef.AddColumnTask;
|
import ca.uhn.fhir.jpa.migrate.taskdef.AddColumnTask;
|
||||||
import ca.uhn.fhir.jpa.migrate.taskdef.ArbitrarySqlTask;
|
import ca.uhn.fhir.jpa.migrate.taskdef.ArbitrarySqlTask;
|
||||||
|
@ -164,6 +161,11 @@ public class HapiFhirJpaMigrationTasks extends BaseMigrationTasks<VersionEnum> {
|
||||||
.addIndex("IDX_VALUESET_C_DSGNTN_VAL")
|
.addIndex("IDX_VALUESET_C_DSGNTN_VAL")
|
||||||
.unique(false)
|
.unique(false)
|
||||||
.withColumns("VAL");
|
.withColumns("VAL");
|
||||||
|
|
||||||
|
// TermCodeSystemVersion
|
||||||
|
version.startSectionWithMessage("Processing table: TRM_CODESYSTEM_VER");
|
||||||
|
Builder.BuilderWithTableName termCodeSystemVersionTable = version.onTable("TRM_CODESYSTEM_VER");
|
||||||
|
termCodeSystemVersionTable.addColumn("CS_DISPLAY").nullable().type(BaseTableColumnTypeTask.ColumnTypeEnum.STRING, TermCodeSystemVersion.MAX_VERSION_LENGTH);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue