~egtann/migrate

76bc4655be674c21b005c0b0ac77c6272c531091 — Evan Tann 9 months ago a39efbd
update module path, bump to v1.0.0rc2
M README.md => README.md +1 -1
@@ 35,7 35,7 @@ you forward in history, and consistency can always be reached.
## Install

```
go get egt.run/pkg/migrate/cmd/migrate
go get egt.run/migrate/cmd/migrate
```

The current version is v1, and the API is stable.

M cmd/migrate/main.go => cmd/migrate/main.go +5 -5
@@ 6,10 6,10 @@ import (
	"os"
	"syscall"

	"egt.run/pkg/migrate"
	"egt.run/pkg/migrate/mysql"
	"egt.run/pkg/migrate/postgres"
	"egt.run/pkg/migrate/sqlite"
	"egt.run/migrate"
	"egt.run/migrate/mysql"
	"egt.run/migrate/postgres"
	"egt.run/migrate/sqlite"
	"github.com/pkg/errors"
	"golang.org/x/crypto/ssh/terminal"
)


@@ 39,7 39,7 @@ func run() error {
	flag.Parse()

	if *version {
		fmt.Println("v1.0.0rc1")
		fmt.Println("v1.0.0rc2")
		return nil
	}


M go.mod => go.mod +1 -1
@@ 1,4 1,4 @@
module egt.run/pkg/migrate
module egt.run/migrate

require (
	github.com/go-sql-driver/mysql v1.5.0

M migrate.go => migrate.go +1 -1
@@ 70,7 70,7 @@ func New(
	// Migrate the database schema to match the tool's expectations
	// automatically
	if curVersion > version {
		return nil, errors.New("must upgrade migrate: go get -u egt.run/pkg/migrate")
		return nil, errors.New("must upgrade migrate: go get -u egt.run/migrate")
	}
	if curVersion < 1 {
		tmpMigrations, err := migrationsFromFiles(m)

M mysql/mysql.go => mysql/mysql.go +1 -1
@@ 8,7 8,7 @@ import (
	"io/ioutil"
	"strings"

	"egt.run/pkg/migrate"
	"egt.run/migrate"
	"github.com/go-sql-driver/mysql"
	"github.com/jmoiron/sqlx"
	"github.com/pkg/errors"

M mysql/mysql_test.go => mysql/mysql_test.go +1 -1
@@ 8,7 8,7 @@ import (
	"strings"
	"testing"

	"egt.run/pkg/migrate"
	"egt.run/migrate"
	_ "github.com/go-sql-driver/mysql"
	"github.com/jmoiron/sqlx"
	"github.com/pkg/errors"

M postgres/postgres.go => postgres/postgres.go +1 -1
@@ 4,7 4,7 @@ import (
	"database/sql"
	"fmt"

	"egt.run/pkg/migrate"
	"egt.run/migrate"
	"github.com/jmoiron/sqlx"
	"github.com/pkg/errors"


M postgres/postgres_test.go => postgres/postgres_test.go +1 -1
@@ 8,7 8,7 @@ import (
	"strings"
	"testing"

	"egt.run/pkg/migrate"
	"egt.run/migrate"
	"github.com/jmoiron/sqlx"
	_ "github.com/lib/pq"
	"github.com/pkg/errors"

M sqlite/sqlite.go => sqlite/sqlite.go +1 -1
@@ 3,7 3,7 @@ package sqlite
import (
	"database/sql"

	"egt.run/pkg/migrate"
	"egt.run/migrate"
	"github.com/jmoiron/sqlx"
	"github.com/pkg/errors"


M sqlite/sqlite_test.go => sqlite/sqlite_test.go +1 -1
@@ 3,7 3,7 @@ package sqlite
import (
	"testing"

	"egt.run/pkg/migrate"
	"egt.run/migrate"
	"github.com/jmoiron/sqlx"
	_ "github.com/mattn/go-sqlite3"
)