diff --git a/CHANGELOG.md b/CHANGELOG.md index aff92f769..c7031830c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +## [1.0.6](https://github.com/uptrace/bun/compare/v1.0.5...v1.0.6) (2021-09-11) + + +### Bug Fixes + +* change unique tag to create a separate unique constraint ([8401615](https://github.com/uptrace/bun/commit/84016155a77ca77613cc054277fefadae3098757)) +* improve zero checker for ptr values ([2b3623d](https://github.com/uptrace/bun/commit/2b3623dd665d873911fd20ca707016929921e862)) + + + ## v1.0.5 - Sep 09 2021 - chore: tweak bundebug colors diff --git a/dbfixture/go.mod b/dbfixture/go.mod index a35168866..967d97ada 100644 --- a/dbfixture/go.mod +++ b/dbfixture/go.mod @@ -5,6 +5,6 @@ go 1.16 replace github.com/uptrace/bun => ../ require ( - github.com/uptrace/bun v1.0.5 + github.com/uptrace/bun v1.0.6 gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b ) diff --git a/dialect/mysqldialect/go.mod b/dialect/mysqldialect/go.mod index fb4fc5edc..71ae59366 100644 --- a/dialect/mysqldialect/go.mod +++ b/dialect/mysqldialect/go.mod @@ -5,6 +5,6 @@ go 1.16 replace github.com/uptrace/bun => ../.. require ( - github.com/uptrace/bun v1.0.5 + github.com/uptrace/bun v1.0.6 golang.org/x/mod v0.4.2 ) diff --git a/dialect/pgdialect/go.mod b/dialect/pgdialect/go.mod index cb2227f6b..b57c27fc9 100644 --- a/dialect/pgdialect/go.mod +++ b/dialect/pgdialect/go.mod @@ -4,4 +4,4 @@ go 1.16 replace github.com/uptrace/bun => ../.. -require github.com/uptrace/bun v1.0.5 +require github.com/uptrace/bun v1.0.6 diff --git a/dialect/sqlitedialect/go.mod b/dialect/sqlitedialect/go.mod index 9ef71f051..a9a0dfc5d 100644 --- a/dialect/sqlitedialect/go.mod +++ b/dialect/sqlitedialect/go.mod @@ -4,4 +4,4 @@ go 1.16 replace github.com/uptrace/bun => ../.. -require github.com/uptrace/bun v1.0.5 +require github.com/uptrace/bun v1.0.6 diff --git a/driver/pgdriver/go.mod b/driver/pgdriver/go.mod index 99d5a9254..2267a72e5 100644 --- a/driver/pgdriver/go.mod +++ b/driver/pgdriver/go.mod @@ -6,6 +6,6 @@ replace github.com/uptrace/bun => ../.. require ( github.com/stretchr/testify v1.7.0 - github.com/uptrace/bun v1.0.5 + github.com/uptrace/bun v1.0.6 mellium.im/sasl v0.2.1 ) diff --git a/example/basic/go.mod b/example/basic/go.mod index effa9a28b..f4b318eec 100644 --- a/example/basic/go.mod +++ b/example/basic/go.mod @@ -13,9 +13,9 @@ replace github.com/uptrace/bun/dialect/sqlitedialect => ../../dialect/sqlitedial replace github.com/uptrace/bun/driver/sqliteshim => ../../driver/sqliteshim require ( - github.com/uptrace/bun v1.0.5 - github.com/uptrace/bun/dbfixture v1.0.5 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.5 - github.com/uptrace/bun/driver/sqliteshim v1.0.5 - github.com/uptrace/bun/extra/bundebug v1.0.5 + github.com/uptrace/bun v1.0.6 + github.com/uptrace/bun/dbfixture v1.0.6 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.6 + github.com/uptrace/bun/driver/sqliteshim v1.0.6 + github.com/uptrace/bun/extra/bundebug v1.0.6 ) diff --git a/example/belongs-to/go.mod b/example/belongs-to/go.mod index a07655acb..2c215828a 100644 --- a/example/belongs-to/go.mod +++ b/example/belongs-to/go.mod @@ -11,8 +11,8 @@ replace github.com/uptrace/bun/dialect/sqlitedialect => ../../dialect/sqlitedial replace github.com/uptrace/bun/driver/sqliteshim => ../../driver/sqliteshim require ( - github.com/uptrace/bun v1.0.5 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.5 - github.com/uptrace/bun/driver/sqliteshim v1.0.5 - github.com/uptrace/bun/extra/bundebug v1.0.5 + github.com/uptrace/bun v1.0.6 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.6 + github.com/uptrace/bun/driver/sqliteshim v1.0.6 + github.com/uptrace/bun/extra/bundebug v1.0.6 ) diff --git a/example/create-table-index/go.mod b/example/create-table-index/go.mod index d1571ae70..daf490740 100644 --- a/example/create-table-index/go.mod +++ b/example/create-table-index/go.mod @@ -11,8 +11,8 @@ replace github.com/uptrace/bun/dialect/sqlitedialect => ../../dialect/sqlitedial replace github.com/uptrace/bun/driver/sqliteshim => ../../driver/sqliteshim require ( - github.com/uptrace/bun v1.0.5 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.5 - github.com/uptrace/bun/driver/sqliteshim v1.0.5 - github.com/uptrace/bun/extra/bundebug v1.0.5 + github.com/uptrace/bun v1.0.6 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.6 + github.com/uptrace/bun/driver/sqliteshim v1.0.6 + github.com/uptrace/bun/extra/bundebug v1.0.6 ) diff --git a/example/fixture/go.mod b/example/fixture/go.mod index 61d64b7b6..679e46c4e 100644 --- a/example/fixture/go.mod +++ b/example/fixture/go.mod @@ -13,9 +13,9 @@ replace github.com/uptrace/bun/driver/sqliteshim => ../../driver/sqliteshim replace github.com/uptrace/bun/dbfixture => ../../dbfixture require ( - github.com/uptrace/bun v1.0.5 - github.com/uptrace/bun/dbfixture v1.0.5 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.5 - github.com/uptrace/bun/driver/sqliteshim v1.0.5 - github.com/uptrace/bun/extra/bundebug v1.0.5 + github.com/uptrace/bun v1.0.6 + github.com/uptrace/bun/dbfixture v1.0.6 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.6 + github.com/uptrace/bun/driver/sqliteshim v1.0.6 + github.com/uptrace/bun/extra/bundebug v1.0.6 ) diff --git a/example/has-many/go.mod b/example/has-many/go.mod index ae311e924..c64d5fb98 100644 --- a/example/has-many/go.mod +++ b/example/has-many/go.mod @@ -11,8 +11,8 @@ replace github.com/uptrace/bun/dialect/sqlitedialect => ../../dialect/sqlitedial replace github.com/uptrace/bun/driver/sqliteshim => ../../driver/sqliteshim require ( - github.com/uptrace/bun v1.0.5 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.5 - github.com/uptrace/bun/driver/sqliteshim v1.0.5 - github.com/uptrace/bun/extra/bundebug v1.0.5 + github.com/uptrace/bun v1.0.6 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.6 + github.com/uptrace/bun/driver/sqliteshim v1.0.6 + github.com/uptrace/bun/extra/bundebug v1.0.6 ) diff --git a/example/has-one/go.mod b/example/has-one/go.mod index 588d03bed..072987804 100644 --- a/example/has-one/go.mod +++ b/example/has-one/go.mod @@ -11,8 +11,8 @@ replace github.com/uptrace/bun/dialect/sqlitedialect => ../../dialect/sqlitedial replace github.com/uptrace/bun/driver/sqliteshim => ../../driver/sqliteshim require ( - github.com/uptrace/bun v1.0.5 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.5 - github.com/uptrace/bun/driver/sqliteshim v1.0.5 - github.com/uptrace/bun/extra/bundebug v1.0.5 + github.com/uptrace/bun v1.0.6 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.6 + github.com/uptrace/bun/driver/sqliteshim v1.0.6 + github.com/uptrace/bun/extra/bundebug v1.0.6 ) diff --git a/example/many-to-many/go.mod b/example/many-to-many/go.mod index 588d03bed..072987804 100644 --- a/example/many-to-many/go.mod +++ b/example/many-to-many/go.mod @@ -11,8 +11,8 @@ replace github.com/uptrace/bun/dialect/sqlitedialect => ../../dialect/sqlitedial replace github.com/uptrace/bun/driver/sqliteshim => ../../driver/sqliteshim require ( - github.com/uptrace/bun v1.0.5 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.5 - github.com/uptrace/bun/driver/sqliteshim v1.0.5 - github.com/uptrace/bun/extra/bundebug v1.0.5 + github.com/uptrace/bun v1.0.6 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.6 + github.com/uptrace/bun/driver/sqliteshim v1.0.6 + github.com/uptrace/bun/extra/bundebug v1.0.6 ) diff --git a/example/migrate/go.mod b/example/migrate/go.mod index f4354815f..c1d57af25 100644 --- a/example/migrate/go.mod +++ b/example/migrate/go.mod @@ -13,9 +13,9 @@ replace github.com/uptrace/bun/driver/sqliteshim => ../../driver/sqliteshim require ( github.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect github.com/russross/blackfriday/v2 v2.1.0 // indirect - github.com/uptrace/bun v1.0.5 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.5 - github.com/uptrace/bun/driver/sqliteshim v1.0.5 - github.com/uptrace/bun/extra/bundebug v1.0.5 + github.com/uptrace/bun v1.0.6 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.6 + github.com/uptrace/bun/driver/sqliteshim v1.0.6 + github.com/uptrace/bun/extra/bundebug v1.0.6 github.com/urfave/cli/v2 v2.3.0 ) diff --git a/example/model-hooks/go.mod b/example/model-hooks/go.mod index d2db5096b..8282d03e4 100644 --- a/example/model-hooks/go.mod +++ b/example/model-hooks/go.mod @@ -14,9 +14,9 @@ replace github.com/uptrace/bun/driver/sqliteshim => ../../driver/sqliteshim require ( github.com/davecgh/go-spew v1.1.1 - github.com/uptrace/bun v1.0.5 - github.com/uptrace/bun/dbfixture v1.0.5 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.5 - github.com/uptrace/bun/driver/sqliteshim v1.0.5 - github.com/uptrace/bun/extra/bundebug v1.0.5 + github.com/uptrace/bun v1.0.6 + github.com/uptrace/bun/dbfixture v1.0.6 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.6 + github.com/uptrace/bun/driver/sqliteshim v1.0.6 + github.com/uptrace/bun/extra/bundebug v1.0.6 ) diff --git a/example/opentelemetry/go.mod b/example/opentelemetry/go.mod index c30aaf14f..75539589d 100644 --- a/example/opentelemetry/go.mod +++ b/example/opentelemetry/go.mod @@ -16,10 +16,10 @@ replace github.com/uptrace/bun/driver/sqliteshim => ../../driver/sqliteshim require ( github.com/brianvoe/gofakeit/v5 v5.11.2 - github.com/uptrace/bun v1.0.5 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.5 - github.com/uptrace/bun/driver/sqliteshim v1.0.5 - github.com/uptrace/bun/extra/bunotel v1.0.5 + github.com/uptrace/bun v1.0.6 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.6 + github.com/uptrace/bun/driver/sqliteshim v1.0.6 + github.com/uptrace/bun/extra/bunotel v1.0.6 go.opentelemetry.io/otel v1.0.0-RC3 go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.0.0-RC3 go.opentelemetry.io/otel/sdk v1.0.0-RC3 diff --git a/example/placeholders/go.mod b/example/placeholders/go.mod index dbcbd503d..457f9773a 100644 --- a/example/placeholders/go.mod +++ b/example/placeholders/go.mod @@ -11,9 +11,9 @@ replace github.com/uptrace/bun/dialect/sqlitedialect => ../../dialect/sqlitedial replace github.com/uptrace/bun/driver/sqliteshim => ../../driver/sqliteshim require ( - github.com/uptrace/bun v1.0.5 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.5 - github.com/uptrace/bun/driver/sqliteshim v1.0.5 - github.com/uptrace/bun/extra/bundebug v1.0.5 + github.com/uptrace/bun v1.0.6 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.6 + github.com/uptrace/bun/driver/sqliteshim v1.0.6 + github.com/uptrace/bun/extra/bundebug v1.0.6 gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/example/trivial/go.mod b/example/trivial/go.mod index fb84553e8..d8109c8c7 100644 --- a/example/trivial/go.mod +++ b/example/trivial/go.mod @@ -18,11 +18,11 @@ replace github.com/uptrace/bun/dialect/mysqldialect => ../../dialect/mysqldialec require ( github.com/go-sql-driver/mysql v1.6.0 - github.com/uptrace/bun v1.0.5 - github.com/uptrace/bun/dialect/mysqldialect v1.0.5 - github.com/uptrace/bun/dialect/pgdialect v1.0.5 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.5 - github.com/uptrace/bun/driver/pgdriver v1.0.5 - github.com/uptrace/bun/driver/sqliteshim v1.0.5 - github.com/uptrace/bun/extra/bundebug v1.0.5 + github.com/uptrace/bun v1.0.6 + github.com/uptrace/bun/dialect/mysqldialect v1.0.6 + github.com/uptrace/bun/dialect/pgdialect v1.0.6 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.6 + github.com/uptrace/bun/driver/pgdriver v1.0.6 + github.com/uptrace/bun/driver/sqliteshim v1.0.6 + github.com/uptrace/bun/extra/bundebug v1.0.6 ) diff --git a/example/tx-composition/go.mod b/example/tx-composition/go.mod index 068f795d8..ef6a057b0 100644 --- a/example/tx-composition/go.mod +++ b/example/tx-composition/go.mod @@ -13,9 +13,9 @@ replace github.com/uptrace/bun/dialect/sqlitedialect => ../../dialect/sqlitedial replace github.com/uptrace/bun/driver/sqliteshim => ../../driver/sqliteshim require ( - github.com/uptrace/bun v1.0.5 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.5 - github.com/uptrace/bun/driver/sqliteshim v1.0.5 - github.com/uptrace/bun/extra/bundebug v1.0.5 + github.com/uptrace/bun v1.0.6 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.6 + github.com/uptrace/bun/driver/sqliteshim v1.0.6 + github.com/uptrace/bun/extra/bundebug v1.0.6 gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/extra/bundebug/go.mod b/extra/bundebug/go.mod index 80b522246..4190375ce 100644 --- a/extra/bundebug/go.mod +++ b/extra/bundebug/go.mod @@ -6,5 +6,5 @@ replace github.com/uptrace/bun => ../.. require ( github.com/fatih/color v1.10.0 - github.com/uptrace/bun v1.0.5 + github.com/uptrace/bun v1.0.6 ) diff --git a/extra/bunotel/go.mod b/extra/bunotel/go.mod index b3b63173e..0f72735ec 100644 --- a/extra/bunotel/go.mod +++ b/extra/bunotel/go.mod @@ -5,7 +5,7 @@ go 1.16 replace github.com/uptrace/bun => ../.. require ( - github.com/uptrace/bun v1.0.5 + github.com/uptrace/bun v1.0.6 go.opentelemetry.io/otel v1.0.0-RC1 go.opentelemetry.io/otel/trace v1.0.0-RC1 ) diff --git a/internal/dbtest/go.mod b/internal/dbtest/go.mod index 6a5dbe125..15d4edae0 100644 --- a/internal/dbtest/go.mod +++ b/internal/dbtest/go.mod @@ -25,12 +25,12 @@ require ( github.com/google/uuid v1.0.0 github.com/jackc/pgx/v4 v4.11.0 github.com/stretchr/testify v1.7.0 - github.com/uptrace/bun v1.0.5 - github.com/uptrace/bun/dbfixture v1.0.5 - github.com/uptrace/bun/dialect/mysqldialect v1.0.5 - github.com/uptrace/bun/dialect/pgdialect v1.0.5 - github.com/uptrace/bun/dialect/sqlitedialect v1.0.5 - github.com/uptrace/bun/driver/pgdriver v1.0.5 - github.com/uptrace/bun/driver/sqliteshim v1.0.5 - github.com/uptrace/bun/extra/bundebug v1.0.5 + github.com/uptrace/bun v1.0.6 + github.com/uptrace/bun/dbfixture v1.0.6 + github.com/uptrace/bun/dialect/mysqldialect v1.0.6 + github.com/uptrace/bun/dialect/pgdialect v1.0.6 + github.com/uptrace/bun/dialect/sqlitedialect v1.0.6 + github.com/uptrace/bun/driver/pgdriver v1.0.6 + github.com/uptrace/bun/driver/sqliteshim v1.0.6 + github.com/uptrace/bun/extra/bundebug v1.0.6 ) diff --git a/package.json b/package.json index bf241824a..a4651c19d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bun", - "version": "0.0.0", + "version": "1.0.6", "main": "index.js", "repository": "git@github.com:uptrace/bun.git", "author": "Vladimir Mihailenco ", diff --git a/version.go b/version.go index 58297a02d..f81c108fd 100644 --- a/version.go +++ b/version.go @@ -2,5 +2,5 @@ package bun // Version is the current release version. func Version() string { - return "1.0.5" + return "1.0.6" }