Releases: pressly/goose
Releases · pressly/goose
v3.15.1
- Fix regression that prevented registering Go migrations that didn't have the corresponding files
available in the filesystem. (#588)- If Go migrations have been registered globally, but there are no .go files in the filesystem,
always include them. - If Go migrations have been registered, and there are .go files in the filesystem, only
include those migrations. This was the original motivation behind #553. - If there are .go files in the filesystem but not registered, raise an error. This is to
prevent accidentally adding valid looking Go migration files without explicitly registering
them.
- If Go migrations have been registered globally, but there are no .go files in the filesystem,
v3.15.0
v3.14.0
- Filter registered Go migrations from the global map with corresponding .go files from the
filesystem.- The code previously assumed all .go migrations would be in the same folder, so this should not
be a breaking change. - See #553 for more details
- The code previously assumed all .go migrations would be in the same folder, so this should not
- Improve output log message for applied up migrations. #562
- Fix an issue where
AddMigrationNoTxContext
was registering the wrong source because it skipped
too many frames. #572 - Improve binary version output when using go install.
v3.13.4
- Fix pre-built binary versioning and make small improvements to GoReleaser config (a tool for packaging / releasing Go tools).
- Fix an edge case in the
sqlparser
where the last up statement may be ignored if it's
unterminated with a semicolon and followed by a-- +goose Down
annotation. - Trim
Logger
interface toPrintf
andFatalf
methods only. Projects that have previously
implemented theLogger
interface should not be affected, and can remove unused methods.
v3.13.3
Fixed a bunch of build issues, see https://github.com/pressly/goose/releases/tag/v3.13.4 for correct changelog.
v3.13.1
- Add pre-built binaries with GoReleaser and update the build process.
Release v3.13.0
Changelog
- Fix
up
andup -allowing-missing
behavior. - Fix empty version in log output.
- Add new
context.Context
-aware functions and methods, for both sql and go migrations. - Return error when no migration files found or dir is not a directory.
Note, tags v3.12.0
, v3.12.1
, v3.12.2
have been retracted because they contained the wrong module reference, please use the current release v3.13.0
onwards. Apologies for the inconvenience.
Full Changelog: v3.11.2...v3.13.0
v3.11.2
v3.11.0
Changelog
- ba6e5fb: Add 'sqlserver' to dialects as an alias of mssql (#510) (@ffaen)
- 3e0905a: build(deps): bump github.com/opencontainers/runc from 1.1.4 to 1.1.5 (#488) (@dependabot[bot])
- 4eee07f: build(deps): bump github.com/ory/dockertest/v3 from 3.9.1 to 3.10.0 (#504) (@dependabot[bot])
- 86f779a: build: add Linux ARM64 arch support (#499) (@jesusprubio)
- 0bc0034: build: upgrade deps and update workflows (#500) (@mfridman)
- 99204d2: build: upgrade to github.com/jackc/pgx/v5 (#475) (@dahu33)
- 15ef2bc: chore: fix comment typos (#480) (@deining)
- 33106fc: chore: update annotation comments (#478) (@mfridman)
- 0d1296b: feat(mssql): update driver to microsoft/go-mssqldb (#501) (@mfridman)
- 49c55f0: feat: add support for azuresql dialect (#487) (@sblackstone)
- e2ecb28: fix: clickhouse tests (@mfridman)
- c462979: refactor: create a generic store and stub out dialect queries (#477) (@mfridman)
- baaec13: refactor: dialectquery (#482) (@mfridman)
- 8574431: refactor: remove deprecated ioutil (@mfridman)
v3.10.0
Changelog (for humans)
- Bumps the minimum Go version to 1.18
- Add a new command:
goose validate
.. enables you to validate your SQL / Go migrations. Very handy for catching errors in CI when the migration is first written - Removes hard coded
tls
override in MySQL DSN - ClickHouse down migrations (deleting version) now uses
set mutations_sync 2
for synchronization
Changelog
- 2a6d7c0: build: bump minimum Go version to 1.18 (update CI) (#458) (@mfridman)
- 935e883: build: golangci-lint add skip-pkg-cache: true (@mfridman)
- 7e6e512: build: update CI go version references and upgrade deps (#473) (@mfridman)
- 0af59c1: build: upgrade dependencies (#471) (@mfridman)
- c2f9bcb: ci: drop 1.17 tests and add 1.20-rc.3 (#455) (@mfridman)
- ad90652: clickhouse: set mutations_sync 2 for delete version (#454) (@chapsuk)
- 8c25e3b: feat:
goose validate
command (#449) (@mfridman) - b4af752: fix test race condition and remove verbose global in parser (#457) (@mfridman)
- b62288d: fix: exclude Go test files from migrations (#474) (@ipoerner)
- 60610d3: remove
tls
override from mysql dsn normalizing (#468) (@jonas-jonas)