~egtann/migrate

f8bba57067c303761315e2916cc06bc61880b2cd — Evan Tann 9 months ago e5cd7ca
update module path
M README.md => README.md +1 -1
@@ 35,7 35,7 @@ you forward in history, and consistency can always be reached.
## Install

```
go get github.com/egtann/migrate/cmd/migrate
go get egt.run/pkg/migrate/cmd/migrate
```

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

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

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

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

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


@@ 6,8 6,8 @@ require (
	github.com/lib/pq v1.3.0
	github.com/mattn/go-sqlite3 v2.0.3+incompatible
	github.com/pkg/errors v0.9.1
	golang.org/x/crypto v0.0.0-20200208060501-ecb85df21340
	golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5
	golang.org/x/crypto v0.0.0-20200403201458-baeed622b8d8
	golang.org/x/sys v0.0.0-20200331124033-c3d80250170d
)

go 1.13

M go.sum => go.sum +5 -0
@@ 10,6 10,7 @@ github.com/lib/pq v1.3.0 h1:/qkRGz8zljWiDcFvgpwUpwIAPu3r07TDvs3Rws+o/pU=
github.com/lib/pq v1.3.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
github.com/mattn/go-sqlite3 v1.9.0 h1:pDRiWfl+++eC2FEFRy6jXmQlvp4Yh3z1MJKg4UeYM/4=
github.com/mattn/go-sqlite3 v1.9.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc=
github.com/mattn/go-sqlite3 v1.13.0 h1:LnJI81JidiW9r7pS/hXe6cFeO5EXNq7KbfvoJLRI69c=
github.com/mattn/go-sqlite3 v2.0.3+incompatible h1:gXHsfypPkaMZrKbD5209QV9jbUTJKjyR5WD3HYQSd+U=
github.com/mattn/go-sqlite3 v2.0.3+incompatible/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=


@@ 17,9 18,13 @@ github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20200208060501-ecb85df21340 h1:KOcEaR10tFr7gdJV2GCKw8Os5yED1u1aOqHjOAb6d2Y=
golang.org/x/crypto v0.0.0-20200208060501-ecb85df21340/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/crypto v0.0.0-20200403201458-baeed622b8d8 h1:fpnn/HnJONpIu6hkXi1u/7rR0NzilgWr4T0JmWkEitk=
golang.org/x/crypto v0.0.0-20200403201458-baeed622b8d8/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5 h1:LfCXLvNmTYH9kEmVgqbnsWfruoXZIrh4YBgqVHtDvw0=
golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200331124033-c3d80250170d h1:nc5K6ox/4lTFbMVSL9WRR81ixkcwXThoiF6yf+R9scA=
golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=

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 github.com/egtann/migrate")
		return nil, errors.New("must upgrade migrate: go get -u egt.run/pkg/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"

	"github.com/egtann/migrate"
	"egt.run/pkg/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"

	"github.com/egtann/migrate"
	"egt.run/pkg/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"

	"github.com/egtann/migrate"
	"egt.run/pkg/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"

	"github.com/egtann/migrate"
	"egt.run/pkg/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"

	"github.com/egtann/migrate"
	"egt.run/pkg/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"

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