changed import paths to point to dimag-jfrog

This commit is contained in:
dimag 2016-08-04 15:52:31 +03:00
parent ce1b59bb81
commit 8630ea78b7
15 changed files with 45 additions and 45 deletions

View File

@ -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 {

View File

@ -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 {

View File

@ -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) {

View File

@ -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.

View File

@ -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 {

View File

@ -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().

View File

@ -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 {

View File

@ -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().

View File

@ -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"
)

View File

@ -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()

View File

@ -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"

View File

@ -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
View File

@ -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"), "")

View File

@ -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

View File

@ -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.