Skip to content

Commit 5b2e255

Browse files
committed
Fix bug and bump version
1 parent 272453c commit 5b2e255

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
44
and this project adheres to [Semantic
55
Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [v4.8.1] - 2021-11-14
8+
9+
### Fixed
10+
11+
- Fix a regression in the soft delete test template generation introduced in
12+
4.8.1
13+
714
## [v4.8.0] - 2021-11-14
815

916
### Added

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
"github.com/volatiletech/sqlboiler/v4/importers"
1717
)
1818

19-
const sqlBoilerVersion = "4.8.0"
19+
const sqlBoilerVersion = "4.8.1"
2020

2121
var (
2222
flagConfigFile string

templates/test/delete.go.tpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{- $alias := .Aliases.Table .Table.Name -}}
2-
{{- $canSoftDelete := .Table.CanSoftDelete -}}
2+
{{- $canSoftDelete := .Table.CanSoftDelete $.AutoColumns.Deleted -}}
33
{{- $soft := and .AddSoftDeletes $canSoftDelete }}
44
{{if $soft -}}
55
func test{{$alias.UpPlural}}SoftDelete(t *testing.T) {

0 commit comments

Comments
 (0)