All Versions
49
Latest Version
Avg Release Cycle
18 days
Latest Release
666 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