v2.0.0
What's new in v2
- Migration files must always define both a
-- migrate:up
block and a--migrate:down
block (even if the down block is empty), preventing errors such as #108. - The
schema_migrations
tableversion
column is now created asvarchar(128)
instead ofvarchar(256)
. Existing tables will not be modified. - Dbmate use as a Go library (including embedded filesystem migrations) is now documented, with some minor changes to the public API.
- Dbmate now has an npm package.
Added
- Add NPM package by @amacneil in #400 #401
- Support embedded filesystem migrations by @amacneil in #388
- Document library use and embedding by @amacneil in #389
Changed
- Shorter version column, use default charset for mysql by @amacneil in #391
- Stricter migration parsing by @amacneil in #397
Fixed
- SQLite: Do not dump system tables by @docapotamus in #383
- ClickHouse: Fix CheckMigrationTableExists by @docapotamus in #387 #394
- MySQL: Fix UNIX socket support in dump action by @Enrico204 in #267
- Fix go build vcs errors by @amacneil in #385
Other
- Refactor wait when creating driver by @amacneil in #386
- Bump docker/build-push-action from 3 to 4 by @dependabot in #382
- Adds flyway to the comparison table by @mwhitm in #306
- Go v1.20 by @amacneil in #396
- Upgrade clickhouse-go to v2 by @amacneil in #395
- Update import paths for v2 by @amacneil in #398
- ClickHouse: Remove inaccurate comment by @amacneil in #399