Releases: src-d/go-kallax
Releases · src-d/go-kallax
v1.2.17
v1.2.16
v1.2.15
v1.2.14
v1.2.13
Enhancements added
- Ability to specify the primary key directly in the embedded
kallax.Model
by column name.
v1.2.12
Changes introduced
- Removal of empty lines at the end and start of blocks in the generated
kallax.go
file.
v1.2.11
Bug fixes
- [Windows-only] correct handling of the
--dir
argument in thekallax migrate
command.
v1.2.10
Bug fixes
- Added implicit foreign keys for the models that should have an inverse relationship but haven't. Please regenerate your
kallax.go
files.
v1.2.9
Bug fixes
- Non-pointer slices of relationships are working as expected now. Please, regenerate your
kallax.go
after this.
v1.2.8
Bug fixes
- Allow circular dependencies in schema generation for self references and inverse relationships.
- Virtual columns were not being correctly taken into account for inserts and updates, so you could not have a relationship without an explicit inverse in the child.
For example, this code works now:
type Parent struct {
kallax.Model
ID int64
Child *Child
}
type Child struct {
kallax.Model
ID int64
}
Before it was required that Child
had a:
Parent *Parent `fk:",inverse"`