mirror of https://github.com/status-im/migrate.git
changed import paths to point to dimag-jfrog
This commit is contained in:
parent
ce1b59bb81
commit
8630ea78b7
|
@ -2,8 +2,8 @@
|
|||
package bash
|
||||
|
||||
import (
|
||||
"github.com/mattes/migrate/driver"
|
||||
"github.com/mattes/migrate/file"
|
||||
"github.com/dimag-jfrog/migrate/driver"
|
||||
"github.com/dimag-jfrog/migrate/file"
|
||||
)
|
||||
|
||||
type Driver struct {
|
||||
|
|
|
@ -9,9 +9,9 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/gocql/gocql"
|
||||
"github.com/mattes/migrate/driver"
|
||||
"github.com/mattes/migrate/file"
|
||||
"github.com/mattes/migrate/migrate/direction"
|
||||
"github.com/dimag-jfrog/migrate/driver"
|
||||
"github.com/dimag-jfrog/migrate/file"
|
||||
"github.com/dimag-jfrog/migrate/migrate/direction"
|
||||
)
|
||||
|
||||
type Driver struct {
|
||||
|
|
|
@ -7,9 +7,9 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/gocql/gocql"
|
||||
"github.com/mattes/migrate/file"
|
||||
"github.com/mattes/migrate/migrate/direction"
|
||||
pipep "github.com/mattes/migrate/pipe"
|
||||
"github.com/dimag-jfrog/migrate/file"
|
||||
"github.com/dimag-jfrog/migrate/migrate/direction"
|
||||
pipep "github.com/dimag-jfrog/migrate/pipe"
|
||||
)
|
||||
|
||||
func TestMigrate(t *testing.T) {
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"fmt"
|
||||
neturl "net/url" // alias to allow `url string` func signature in New
|
||||
|
||||
"github.com/mattes/migrate/file"
|
||||
"github.com/dimag-jfrog/migrate/file"
|
||||
)
|
||||
|
||||
// Driver is the interface type that needs to implemented by all drivers.
|
||||
|
|
|
@ -12,9 +12,9 @@ import (
|
|||
"strings"
|
||||
|
||||
"github.com/go-sql-driver/mysql"
|
||||
"github.com/mattes/migrate/driver"
|
||||
"github.com/mattes/migrate/file"
|
||||
"github.com/mattes/migrate/migrate/direction"
|
||||
"github.com/dimag-jfrog/migrate/driver"
|
||||
"github.com/dimag-jfrog/migrate/file"
|
||||
"github.com/dimag-jfrog/migrate/migrate/direction"
|
||||
)
|
||||
|
||||
type Driver struct {
|
||||
|
|
|
@ -6,9 +6,9 @@ import (
|
|||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/mattes/migrate/file"
|
||||
"github.com/mattes/migrate/migrate/direction"
|
||||
pipep "github.com/mattes/migrate/pipe"
|
||||
"github.com/dimag-jfrog/migrate/file"
|
||||
"github.com/dimag-jfrog/migrate/migrate/direction"
|
||||
pipep "github.com/dimag-jfrog/migrate/pipe"
|
||||
)
|
||||
|
||||
// TestMigrate runs some additional tests on Migrate().
|
||||
|
|
|
@ -8,9 +8,9 @@ import (
|
|||
"strconv"
|
||||
|
||||
"github.com/lib/pq"
|
||||
"github.com/mattes/migrate/driver"
|
||||
"github.com/mattes/migrate/file"
|
||||
"github.com/mattes/migrate/migrate/direction"
|
||||
"github.com/dimag-jfrog/migrate/driver"
|
||||
"github.com/dimag-jfrog/migrate/file"
|
||||
"github.com/dimag-jfrog/migrate/migrate/direction"
|
||||
)
|
||||
|
||||
type Driver struct {
|
||||
|
|
|
@ -5,9 +5,9 @@ import (
|
|||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/mattes/migrate/file"
|
||||
"github.com/mattes/migrate/migrate/direction"
|
||||
pipep "github.com/mattes/migrate/pipe"
|
||||
"github.com/dimag-jfrog/migrate/file"
|
||||
"github.com/dimag-jfrog/migrate/migrate/direction"
|
||||
pipep "github.com/dimag-jfrog/migrate/pipe"
|
||||
)
|
||||
|
||||
// TestMigrate runs some additional tests on Migrate().
|
||||
|
|
|
@ -7,9 +7,9 @@ import (
|
|||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/mattes/migrate/driver"
|
||||
"github.com/mattes/migrate/file"
|
||||
"github.com/mattes/migrate/migrate/direction"
|
||||
"github.com/dimag-jfrog/migrate/driver"
|
||||
"github.com/dimag-jfrog/migrate/file"
|
||||
"github.com/dimag-jfrog/migrate/migrate/direction"
|
||||
"github.com/mattn/go-sqlite3"
|
||||
)
|
||||
|
||||
|
|
|
@ -4,9 +4,9 @@ import (
|
|||
"database/sql"
|
||||
"testing"
|
||||
|
||||
"github.com/mattes/migrate/file"
|
||||
"github.com/mattes/migrate/migrate/direction"
|
||||
pipep "github.com/mattes/migrate/pipe"
|
||||
"github.com/dimag-jfrog/migrate/file"
|
||||
"github.com/dimag-jfrog/migrate/migrate/direction"
|
||||
pipep "github.com/dimag-jfrog/migrate/pipe"
|
||||
)
|
||||
|
||||
// TestMigrate runs some additional tests on Migrate()
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"bytes"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/mattes/migrate/migrate/direction"
|
||||
"github.com/dimag-jfrog/migrate/migrate/direction"
|
||||
"go/token"
|
||||
"io/ioutil"
|
||||
"path"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package file
|
||||
|
||||
import (
|
||||
"github.com/mattes/migrate/migrate/direction"
|
||||
"github.com/dimag-jfrog/migrate/migrate/direction"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path"
|
||||
|
|
20
main.go
20
main.go
|
@ -1,6 +1,6 @@
|
|||
// Package main is the CLI.
|
||||
// You can use the CLI via Terminal.
|
||||
// import "github.com/mattes/migrate/migrate" for usage within Go.
|
||||
// import "github.com/dimag-jfrog/migrate/migrate" for usage within Go.
|
||||
package main
|
||||
|
||||
import (
|
||||
|
@ -11,15 +11,15 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/fatih/color"
|
||||
_ "github.com/mattes/migrate/driver/bash"
|
||||
_ "github.com/mattes/migrate/driver/cassandra"
|
||||
_ "github.com/mattes/migrate/driver/mysql"
|
||||
_ "github.com/mattes/migrate/driver/postgres"
|
||||
_ "github.com/mattes/migrate/driver/sqlite3"
|
||||
"github.com/mattes/migrate/file"
|
||||
"github.com/mattes/migrate/migrate"
|
||||
"github.com/mattes/migrate/migrate/direction"
|
||||
pipep "github.com/mattes/migrate/pipe"
|
||||
_ "github.com/dimag-jfrog/migrate/driver/bash"
|
||||
_ "github.com/dimag-jfrog/migrate/driver/cassandra"
|
||||
_ "github.com/dimag-jfrog/migrate/driver/mysql"
|
||||
_ "github.com/dimag-jfrog/migrate/driver/postgres"
|
||||
_ "github.com/dimag-jfrog/migrate/driver/sqlite3"
|
||||
"github.com/dimag-jfrog/migrate/file"
|
||||
"github.com/dimag-jfrog/migrate/migrate"
|
||||
"github.com/dimag-jfrog/migrate/migrate/direction"
|
||||
pipep "github.com/dimag-jfrog/migrate/pipe"
|
||||
)
|
||||
|
||||
var url = flag.String("url", os.Getenv("MIGRATE_URL"), "")
|
||||
|
|
|
@ -11,10 +11,10 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/mattes/migrate/driver"
|
||||
"github.com/mattes/migrate/file"
|
||||
"github.com/mattes/migrate/migrate/direction"
|
||||
pipep "github.com/mattes/migrate/pipe"
|
||||
"github.com/dimag-jfrog/migrate/driver"
|
||||
"github.com/dimag-jfrog/migrate/file"
|
||||
"github.com/dimag-jfrog/migrate/migrate/direction"
|
||||
pipep "github.com/dimag-jfrog/migrate/pipe"
|
||||
)
|
||||
|
||||
// Up applies all available migrations
|
||||
|
|
|
@ -6,8 +6,8 @@ import (
|
|||
"testing"
|
||||
// Ensure imports for each driver we wish to test
|
||||
|
||||
_ "github.com/mattes/migrate/driver/postgres"
|
||||
_ "github.com/mattes/migrate/driver/sqlite3"
|
||||
_ "github.com/dimag-jfrog/migrate/driver/postgres"
|
||||
_ "github.com/dimag-jfrog/migrate/driver/sqlite3"
|
||||
)
|
||||
|
||||
// Add Driver URLs here to test basic Up, Down, .. functions.
|
||||
|
|
Loading…
Reference in New Issue