Skip to content

Commit

Permalink
Updated project path
Browse files Browse the repository at this point in the history
  • Loading branch information
monoflash committed Apr 8, 2021
1 parent cdbdbbf commit 59f943e
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2
jobs:
build:
working_directory: /go/src/gopkg.in/webnice/migrate.v1/gsmigrate
working_directory: /go/src/github.com/webnice/migrate/gsmigrate
docker:
- image: circleci/golang:1.8

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
_obj
_test
/src
/bin

# Architecture specific extensions/prefixes
*.[568vq]
Expand Down
4 changes: 2 additions & 2 deletions .testpackages
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
gopkg.in/webnice/migrate.v1/goose
gopkg.in/webnice/migrate.v1/gsmigrate
github.com/webnice/migrate/goose
github.com/webnice/migrate/gsmigrate
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ dep: link
.PHONY: dep

build:
GO111MODULE="off" GOPATH="$(DIR)" go build -o ${BIN01} ${PRJ01}
@GO111MODULE="on" go build -o ${BIN01} "github.com/webnice/migrate/${PRJ01}"
.PHONY: build

rpm:
Expand Down
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# migrate

[![GoDoc](https://godoc.org/gopkg.in/webnice/migrate.v1/goose?status.svg)](https://godoc.org/gopkg.in/webnice/migrate.v1/goose)
[![GoDoc](https://godoc.org/github.com/webnice/migrate/goose?status.svg)](https://godoc.org/github.com/webnice/migrate/goose)
[![Go Report Card](https://goreportcard.com/badge/github.com/webnice/migrate)](https://goreportcard.com/report/github.com/webnice/migrate)
[![Coverage Status](https://coveralls.io/repos/github/webnice/migrate/badge.svg?branch=v1)](https://coveralls.io/github/webnice/migrate?branch=v1)
[![Build Status](https://travis-ci.org/webnice/migrate.svg?branch=v1)](https://travis-ci.org/webnice/migrate)
[![CircleCI](https://circleci.com/gh/webnice/migrate/tree/v1.svg?style=svg)](https://circleci.com/gh/webnice/migrate/tree/v1)

[comment]: <> ([![Coverage Status]&#40;https://coveralls.io/repos/github/webnice/migrate/badge.svg?branch=v1&#41;]&#40;https://coveralls.io/github/webnice/migrate?branch=v1&#41;)
[comment]: <> ([![Build Status]&#40;https://travis-ci.org/webnice/migrate.svg?branch=v1&#41;]&#40;https://travis-ci.org/webnice/migrate&#41;)

Is a database migration tool. Manage your database schema by creating incremental SQL changes or Go functions.

Based on goose lib of `bitbucket.org/liamstask/goose`
Expand All @@ -23,7 +24,7 @@ Based on goose lib of `bitbucket.org/liamstask/goose`

# Install

$ go get -u gopkg.in/webnice/migrate.v1/gsmigrate
$ go get -u github.com/webnice/migrate/gsmigrate

This will install the `gsmigrate` binary to your `$GOPATH/bin` directory.

Expand Down Expand Up @@ -224,7 +225,7 @@ language plpgsql;
## Go Migrations

1. Create your own goose binary
2. Import `gopkg.in/webnice/migrate.v1/goose`
2. Import `github.com/webnice/migrate/goose`
3. Register your migration functions
4. Run goose command, ie. `goose.Up(db *sql.DB, dir string)`

Expand All @@ -236,7 +237,7 @@ package main
import (
"database/sql"

"gopkg.in/webnice/migrate.v1/goose"
"github.com/webnice/migrate/goose"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion goose/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ var goSQLMigrationTemplate = template.Must(template.New("goose.go-migration").Pa
import (
"database/sql"
"gopkg.in/webnice/migrate.v1/goose"
"github.com/webnice/migrate/goose"
)
func init() {
Expand Down
2 changes: 1 addition & 1 deletion gsmigrate/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"log"

"gopkg.in/webnice/migrate.v1/goose"
"github.com/webnice/migrate/goose"

// Init database drivers
_ "github.com/ClickHouse/clickhouse-go" // Clickhouse
Expand Down
2 changes: 1 addition & 1 deletion gsmigrate/main_clickhouse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
)

//func TestClickHouseDialect(t *testing.T) {
// out, err := exec.Command("go", strings.Fields("go build -i -o gsmigrate gopkg.in/webnice/migrate.v1/gsmigrate")...).CombinedOutput()
// out, err := exec.Command("go", strings.Fields("go build -i -o gsmigrate github.com/webnice/migrate/gsmigrate")...).CombinedOutput()
// if !assert.NoError(t, err, string(out)) {
// return
// }
Expand Down
2 changes: 1 addition & 1 deletion gsmigrate/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

//func TestDefaultBinary(t *testing.T) {
// commands := []string{
// "go build -i -o ../bin/gsmigrate gopkg.in/webnice/migrate.v1/gsmigrate",
// "go build -i -o ../bin/gsmigrate github.com/webnice/migrate/gsmigrate",
// //"./gsmigrate -dir=examples/sql-migrations sqlite3 sql.db up",
// //"./gsmigrate -dir=examples/sql-migrations sqlite3 sql.db version",
// //"./gsmigrate -dir=examples/sql-migrations sqlite3 sql.db down",
Expand Down

0 comments on commit 59f943e

Please sign in to comment.