- Add option to return an error if the database have unknown migrations
(defaults to
false
) (#37).
- Fixed and written tests for transaction handling (#34, #10). Enabling transation is recommend, but only supported for databases that support DDL transactions (PostgreSQL, Microsoft SQL Server and SQLite).
- Making the code more safe by checking more errors (#35).
- Allow an empty migration list if a
InitSchema
function is defined (#28).
- Fixed
testify
import path fromgopkg.in/stretchr/testify.v1
togithub.com/stretchr/testify
(#27).
- Starting from this release, this package is available as a Go Module.
Import path is still
gopkg.in/gormigrate.v1
in this major version, but will change togithub.com/go-gormigrate/gormigrate/v2
in the next major release; - Validate the ID exists on the migration list (#20, #21).
- An empty migration list is not allowed anymore. Please, make sure that you have at least one migration, even if dummy;
- Added
MigrateTo
andRollbackTo
methods (#15); - CI now runs tests for SQLite, PostgreSQL, MySQL and Microsoft SQL Server.
- Add
IDColumnSize
options, which defaults to255
(#7);
- Assuming default options if blank;
- Returning an error if the migration list has a duplicated migration ID.
- Fix
RollbackLast
(#4).
Sorry, we don't have changelog for older releases 😢.