Skip to content

Commit

Permalink
v1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
andreynering committed Jul 7, 2019
1 parent 13b3726 commit ff46dd7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## v1.6.0 - 2019-07-07

- Add option to return an error if the database have unknown migrations
(defaults to `false`)
([#37](https://github.com/go-gormigrate/gormigrate/pull/37)).

## v1.5.0 - 2019-04-29

- Fixed and written tests for transaction handling
Expand Down
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,18 @@ This is the options struct, in case you don't want the defaults:

```go
type Options struct {
// Migrations table name. Default to "migrations".
// TableName is the migration table.
TableName string
// The name of the column that stores the ID of migrations. Defaults to "id".
// IDColumnName is the name of column where the migration id will be stored.
IDColumnName string
// IDColumnSize is the length of the migration id column
IDColumnSize int
// UseTransaction makes Gormigrate execute migrations inside a single transaction.
// Keep in mind that not all databases support DDL commands inside transactions.
// Defaults to false.
UseTransaction bool
// ValidateUnknownMigrations will cause migrate to fail if there's unknown migration
// IDs in the database
ValidateUnknownMigrations bool
}
```

Expand Down

0 comments on commit ff46dd7

Please sign in to comment.