mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
FIX DB2 migration: reorg table must be called after drop not null
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user