Schema changes
ObjectBox manages its data model (schema) mostly automatically. ObjectBox db supports automatic schema migration to make data persistence as easy as possible for application developers.
Last updated
can't merge binding model information: uid annotation value must not be empty
(model entity UID = 1306759095002958910) on entity OldEntityNamecan't merge binding model information: uid annotation value must not be empty on property OldPropertyName, entity Task:
[rename] apply the current UID 9141374017424160113
[change/reset] apply a new UID 6050128673802995827// `objectbox:"uid:1306759095002958910"`
type OldEntityName struct {
Id uint64
}
type Task struct {
Id uint64
OldPropertyName string `objectbox:"uid:9141374017424160113"`
}// `objectbox:"uid:1306759095002958910"`
type RenamedEntity struct {
Id uint64
}
type Task struct {
Id uint64
RenamedProperty string `objectbox:"uid:9141374017424160113"`
}type Task struct {
Id uint64
OldProperty string
}
// becomes
type Task struct {
Id uint64
OldProperty string
NewProperty int
}
// Note, if the property already had an UID annotation,
// don't add the same UID to the new property - skip the annotation instead.type Task struct {
Id uint64
Property string `objectbox:"uid"`
}can't merge binding model information: uid annotation value must not be empty on property Property, entity Task:
[rename] apply the current UID 9141374017424160113
[change/reset] apply a new UID 6050128673802995827type Task struct {
Id uint64
Property int `objectbox:"uid:6050128673802995827"`
}