FIX DB2 migration: reorg table must be called after drop not null

This commit is contained in:
Noemi Praml
2022-09-02 10:49:25 +02:00
parent a5c3bbb97e
commit fbb73d465c
4 changed files with 24 additions and 5 deletions
@@ -3,6 +3,7 @@ package misc.migration.v1_0;
import io.ebean.annotation.DbComment;
import io.ebean.annotation.History;
import io.ebean.annotation.Index;
import io.ebean.annotation.NotNull;
import javax.persistence.*;
import java.util.List;
@@ -36,6 +37,17 @@ public class ETable {
@OneToMany(mappedBy = "foreign")
List<ETable> foreigns;
@NotNull
private String textfield;
public void setTextfield(String textfield) {
this.textfield = textfield;
}
public String getTextfield() {
return textfield;
}
public String getIndex() {
return index;
}
@@ -39,4 +39,9 @@ public class ETable {
@OneToMany(mappedBy = "foreign")
List<ETable> foreigns;
private String textfield;
@Index
private String textfield2;
}