rename lib goose to gormgoose
This commit is contained in:
parent
b6684a18ac
commit
a4bbc26e1e
@ -13,7 +13,7 @@ You can manage your database's evolution by creating incremental SQL or Go scrip
|
|||||||
|
|
||||||
This will install the `gorm-goose` binary to your `$GOPATH/bin` directory.
|
This will install the `gorm-goose` binary to your `$GOPATH/bin` directory.
|
||||||
|
|
||||||
You can also build gorm-goose into your own applications by importing `github.com/Altoros/gorm-goose/lib/goose`.
|
You can also build gorm-goose into your own applications by importing `github.com/Altoros/gorm-goose/lib/gorm-goose`.
|
||||||
|
|
||||||
# Usage
|
# Usage
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/Altoros/gorm-goose/lib/goose"
|
goose "github.com/Altoros/gorm-goose/lib/gorm-goose"
|
||||||
)
|
)
|
||||||
|
|
||||||
var createCmd = &Command{
|
var createCmd = &Command{
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
"github.com/Altoros/gorm-goose/lib/goose"
|
goose "github.com/Altoros/gorm-goose/lib/gorm-goose"
|
||||||
)
|
)
|
||||||
|
|
||||||
var dbVersionCmd = &Command{
|
var dbVersionCmd = &Command{
|
||||||
|
@ -3,7 +3,7 @@ package main
|
|||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
"github.com/Altoros/gorm-goose/lib/goose"
|
goose "github.com/Altoros/gorm-goose/lib/gorm-goose"
|
||||||
)
|
)
|
||||||
|
|
||||||
var downCmd = &Command{
|
var downCmd = &Command{
|
||||||
|
@ -3,7 +3,7 @@ package main
|
|||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
"github.com/Altoros/gorm-goose/lib/goose"
|
goose "github.com/Altoros/gorm-goose/lib/gorm-goose"
|
||||||
)
|
)
|
||||||
|
|
||||||
var redoCmd = &Command{
|
var redoCmd = &Command{
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/Altoros/gorm-goose/lib/goose"
|
goose "github.com/Altoros/gorm-goose/lib/gorm-goose"
|
||||||
"github.com/jinzhu/gorm"
|
"github.com/jinzhu/gorm"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ package main
|
|||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
"github.com/Altoros/gorm-goose/lib/goose"
|
goose "github.com/Altoros/gorm-goose/lib/gorm-goose"
|
||||||
)
|
)
|
||||||
|
|
||||||
var upCmd = &Command{
|
var upCmd = &Command{
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"text/template"
|
"text/template"
|
||||||
|
|
||||||
"github.com/Altoros/gorm-goose/lib/goose"
|
goose "github.com/Altoros/gorm-goose/lib/gorm-goose"
|
||||||
)
|
)
|
||||||
|
|
||||||
// global options. available to any subcommands.
|
// global options. available to any subcommands.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package goose
|
package gormgoose
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
@ -1,4 +1,4 @@
|
|||||||
package goose
|
package gormgoose
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
@ -1,4 +1,4 @@
|
|||||||
package goose
|
package gormgoose
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
@ -1,4 +1,4 @@
|
|||||||
package goose
|
package gormgoose
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
@ -1,4 +1,4 @@
|
|||||||
package goose
|
package gormgoose
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
@ -1,4 +1,4 @@
|
|||||||
package goose
|
package gormgoose
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bufio"
|
"bufio"
|
@ -1,4 +1,4 @@
|
|||||||
package goose
|
package gormgoose
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
@ -1,4 +1,4 @@
|
|||||||
package goose
|
package gormgoose
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"io"
|
"io"
|
Loading…
Reference in New Issue
Block a user