Skip to content

Commit

Permalink
Merge pull request #2 from astropay/fix/readme
Browse files Browse the repository at this point in the history
code cleanup
  • Loading branch information
Robert committed Aug 6, 2019
2 parents 2d12ad3 + 77c2c68 commit ae57e51
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ _test
*.iml
*.out
.idea/
*.zip
*.zip
migrate
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,12 @@ Usage examples:
`migrate -db=apc -env=dev -dbuser=myuser -dbpass=Passw0rd -command=up`

- run migration for `test` schema in a specific directory
`migrate -db=apc -env=dev -dbuser=myuser -dbpass=Passw0rd -command=up -dir=/opt/dbscripts`
`migrate -db=apc -env=dev -dbuser=myuser -dbpass=Passw0rd -command=up -dir=/opt/dbscripts`

To install the binary:

- You can get the latest relased binary from [Releases page](https://github.com/astropay/migrate/releases)

- or, you can clone the project locally and install it with `go build -i -o migrate github.com/astropay/migrate/cmd`

In both cases, you should have the `migrate` command in your path in order to be able to run ir from anywhere.
1 change: 0 additions & 1 deletion cmd/.gitignore

This file was deleted.

2 changes: 1 addition & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,5 @@ func checkArguments() (printUsage bool, err error) {
func printUsage() {
fmt.Print("AstroPay Migration Tool\n\n")
flag.Usage()
fmt.Print("\nexample: db-migrations -db=apc -env=test -dbuser=myuser -dbpass=Passw0rd -command=up\n")
fmt.Print("\nexample: migrate -db=apc -env=test -dbuser=myuser -dbpass=Passw0rd -command=up\n")
}

0 comments on commit ae57e51

Please sign in to comment.