Skip to content

Releases: lopezator/migrator

v0.3.1

17 May 11:17
Compare
Choose a tag to compare

Changes since v0.3.0

v0.3.0...a3fcbfd

  • Upgrade dependencies to fix dependabot complaints.
  • Upgrade go version.
  • Use go:embed instead of esc for tests.
  • Migrate from DroneCI to Github Actions.

migrator v0.3.0

10 Apr 19:28
Compare
Choose a tag to compare

Changes since v0.2.0

v0.2.0...bee4efd

  • README improvements
  • Add WithLogger option, allowing logger customization #30

Thanks to @adamdecaf @dufcrule

migrator v0.2.0

12 Aug 06:56
Compare
Choose a tag to compare

Changes since v0.1.0

v0.1.0...400b0c9

  • README improvements.
  • Test coverage improvements.
  • Add Pending func to get pending migrations: #9
  • Add TableName opt, so the migration table name is now seteable: #13

Breaking changes, now migrations must be set on New via Migrations opt:

    m := migrator.New(
        Migrations(
            &migrator.Migration{
                Name: "Create table foo",
                Func: func(tx *sql.Tx) error {
                    if _, err := tx.Exec("CREATE TABLE foo (id INT PRIMARY KEY)"); err != nil {
                        return err
                    }
                    return nil
                },
            },
        ),
    )

Thanks to @adiweiss @cinemast @glerchundi @dufcrule