All Versions
49
Latest Version
Avg Release Cycle
18 days
Latest Release
572 days ago
Changelog History
Page 2
Changelog History
Page 2
-
v1.0.25 Changes
February 22, 2022๐ Bug Fixes
๐ Deprecated
๐ In the comming v1.1.x release, Bun will stop automatically adding
,pk,autoincrement
options on โID int64/int32
fields. This version (v1.0.23) only prints a warning when it encounters such fields, but the code will continue working as before.โ To fix warnings, add missing options:
type Model struct { - ID int64 + ID int64 `bun:",pk,autoincrement"` }
โ To silence warnings:
bun.SetWarnLogger(log.New(ioutil.Discard, "", log.LstdFlags))
โ Bun will also print a warning on soft delete โ fields without a
,nullzero
option. You can fix the warning by adding missing,nullzero
or,allowzero
options.๐ In v1.1.x, such options as
,nopk
and,allowzero
will not be necessary and will be removed.๐ Bug Fixes
๐ fix missing autoincrement warning (3bc9c72)
append slice values (4a65129)
don't automatically set pk, nullzero, and autoincrement options (519a0df)
๐ Features
- โ add CreateTableQuery.DetectForeignKeys (a958fcb)
-
v1.0.22 Changes
January 28, 2022๐ Bug Fixes
๐ฅ Breaking (MySQL, MariaDB)
- insert: get last insert id only with pk support auto increment
(79e7c79). Make
sure your MySQL models have
bun:",pk,autoincrement"
options if you are using autoincrements.
๐ Features
- insert: get last insert id only with pk support auto increment
(79e7c79). Make
sure your MySQL models have
-
v1.0.21 Changes
January 06, 2022๐ Bug Fixes
- append where to index create (1de6cea)
- check if slice is nil when calling BeforeAppendModel (938d9da)
- dbfixture: directly set matching types via reflect (780504c)
- properly handle driver.Valuer and type:json (a17454a)
- ๐ support scanning string into uint64 (73cc117)
- unique module name for opentelemetry example (f2054fe)
๐ Features
-
v1.0.20 Changes
December 19, 2021๐ Bug Fixes
- โ add Event.QueryTemplate and change Event.Query to be always formatted (52b1ccd)
- ๐ change GetTableName to return formatted table name in case ModelTableExpr (95144dd)
- ๐ change ScanAndCount to work with transactions (5b3f2c0)
- dbfixture: directly call funcs bypassing template eval (a61974b)
- 0๏ธโฃ don't append CASCADE by default in drop table/column queries (26457ea)
- migrate: mark migrations as applied on error so the migration can be rolled back (8ce33fb)
- ๐ respect nullzero when appending struct fields. Fixes #339 (ffd02f3)
- reuse tx for relation join (#366) (60bdb1a)
๐ Features
-
v1.0.19 Changes
November 30, 2021๐ Features
- โ add support for column:name to specify column name (e37b460)
-
v1.0.18 Changes
November 24, 2021 -
v1.0.17 Changes
November 11, 2021 -
v1.0.16 Changes
November 07, 2021 -
v1.0.15 Changes
October 29, 2021