Rename sources to reflect updated build constraint names

This commit is contained in:
Dale Hui 2018-06-12 16:32:58 +08:00
parent dfa9fc05cb
commit 0f16f7f6a2
16 changed files with 15 additions and 15 deletions

View File

@ -12,7 +12,7 @@
Some more helpful commands:
* You can specify which database/ source tests to run:
`make test-short SOURCE='file go-bindata' DATABASE='postgres cassandra'`
`make test-short SOURCE='file go_bindata' DATABASE='postgres cassandra'`
* After `make test`, run `make html-coverage` which opens a shiny test coverage overview.
* `make build-cli` builds the CLI in directory `cli/build/`.
* `make list-external-deps` lists all external dependencies for each package

View File

@ -43,10 +43,10 @@ Database drivers run migrations. [Add a new database?](database/driver.go)
Source drivers read migrations from local or remote sources. [Add a new source?](source/driver.go)
* [Filesystem](source/file) - read from fileystem
* [Go-Bindata](source/go-bindata) - read from embedded binary data ([jteeuwen/go-bindata](https://github.com/jteeuwen/go-bindata))
* [Go-Bindata](source/go_bindata) - read from embedded binary data ([jteeuwen/go-bindata](https://github.com/jteeuwen/go-bindata))
* [Github](source/github) - read from remote Github repositories
* [AWS S3](source/aws-s3) - read from Amazon Web Services S3
* [Google Cloud Storage](source/google-cloud-storage) - read from Google Cloud Platform Storage
* [AWS S3](source/aws_s3) - read from Amazon Web Services S3
* [Google Cloud Storage](source/google_cloud_storage) - read from Google Cloud Platform Storage

View File

@ -3,5 +3,5 @@
package main
import (
_ "github.com/golang-migrate/migrate/source/aws-s3"
_ "github.com/golang-migrate/migrate/source/aws_s3"
)

View File

@ -3,5 +3,5 @@
package main
import (
_ "github.com/golang-migrate/migrate/source/go-bindata"
_ "github.com/golang-migrate/migrate/source/go_bindata"
)

View File

@ -3,5 +3,5 @@
package main
import (
_ "github.com/golang-migrate/migrate/source/google-cloud-storage"
_ "github.com/golang-migrate/migrate/source/google_cloud_storage"
)

View File

@ -1,3 +1,3 @@
# aws-s3
# aws_s3
`s3://<bucket>/<prefix>`

View File

@ -1,4 +1,4 @@
# go-bindata
# go_bindata
## Usage
@ -14,8 +14,8 @@ cd examples/migrations && go-bindata -pkg migrations .
```go
import (
"github.com/golang-migrate/migrate"
"github.com/golang-migrate/migrate/source/go-bindata"
"github.com/golang-migrate/migrate/source/go-bindata/examples/migrations"
"github.com/golang-migrate/migrate/source/go_bindata"
"github.com/golang-migrate/migrate/source/go_bindata/examples/migrations"
)
func main() {
@ -33,11 +33,11 @@ func main() {
### Read bindata with URL (todo)
This will restore the assets in a tmp directory and then
This will restore the assets in a tmp directory and then
proxy to source/file. go-bindata must be in your `$PATH`.
```
migrate -source go-bindata://examples/migrations/bindata.go
migrate -source go-bindata://examples/migrations/bindata.go
```

View File

@ -3,7 +3,7 @@ package bindata
import (
"testing"
"github.com/golang-migrate/migrate/source/go-bindata/testdata"
"github.com/golang-migrate/migrate/source/go_bindata/testdata"
st "github.com/golang-migrate/migrate/source/testing"
)

View File

@ -1,3 +1,3 @@
# google-cloud-storage
# google_cloud_storage
`gcs://<bucket>/<prefix>`