mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-29 23:22:45 +00:00
2dc9fc1626
* start moving to bun * changing more stuff * more * and yet more * tests passing * seems stable now * more big changes * small fix * little fixes
2.6 KiB
2.6 KiB
Changelog
v0.4.1 - Aug 18 2021
- Fixed migrate package to properly rollback migrations.
- Added
allowzero
tag option that undoesnullzero
option.
v0.4.0 - Aug 11 2021
- Changed
WhereGroup
function to accept*SelectQuery
. - Fixed query hooks for count queries.
v0.3.4 - Jul 19 2021
- Renamed
migrate.CreateGo
toCreateGoMigration
. - Added
migrate.WithPackageName
to customize the Go package name in generated migrations. - Renamed
migrate.CreateSQL
toCreateSQLMigrations
and changedCreateSQLMigrations
to create both up and down migration files.
v0.3.1 - Jul 12 2021
- Renamed
alias
field struct tag toalt
so it is not confused with column alias. - Reworked migrate package API. See migrate example for details.
v0.3.0 - Jul 09 2021
- Changed migrate package to return structured data instead of logging the progress. See migrate example for details.
v0.2.14 - Jul 01 2021
- Added sqliteshim by Ivan Trubach.
- Added support for MySQL 5.7 in addition to MySQL 8.
v0.2.12 - Jun 29 2021
- Fixed scanners for net.IP and net.IPNet.
v0.2.10 - Jun 29 2021
- Fixed pgdriver to format passed query args.
v0.2.9 - Jun 27 2021
- Added support for prepared statements in pgdriver.
v0.2.7 - Jun 26 2021
-
Added
UpdateQuery.Bulk
helper to generate bulk-update queries.Before:
models := []Model{ {42, "hello"}, {43, "world"}, } return db.NewUpdate(). With("_data", db.NewValues(&models)). Model(&models). Table("_data"). Set("model.str = _data.str"). Where("model.id = _data.id")
Now:
db.NewUpdate(). Model(&models). Bulk()
v0.2.5 - Jun 25 2021
- Changed time.Time to always append zero time as
NULL
. - Added
db.RunInTx
helper.
v0.2.4 - Jun 21 2021
- Added SSL support to pgdriver.
v0.2.3 - Jun 20 2021
- Replaced
ForceDelete(ctx)
withForceDelete().Exec(ctx)
for soft deletes.
v0.2.1 - Jun 17 2021
- Renamed
DBI
toIConn
.IConn
is a common interface for*sql.DB
,*sql.Conn
, and*sql.Tx
. - Added
IDB
.IDB
is a common interface for*bun.DB
,bun.Conn
, andbun.Tx
.
v0.2.0 - Jun 16 2021
- Changed model hooks. See model-hooks example.
- Renamed
has-one
tobelongs-to
. Renamedbelongs-to
tohas-one
. Previously Bun used incorrect names for these relations.