Add note to readme
This commit is contained in:
parent
aac2d852ca
commit
4e8485810e
@ -46,6 +46,7 @@ Lastly, ensure that `GOPATH` is defined in your shell. If necessary, `GOPATH` ca
|
|||||||
1. `createdb vulcanize_public`
|
1. `createdb vulcanize_public`
|
||||||
1. `cd $GOPATH/src/github.com/vulcanize/vulcanizedb`
|
1. `cd $GOPATH/src/github.com/vulcanize/vulcanizedb`
|
||||||
1. Run the migrations: `make migrate HOST_NAME=localhost NAME=vulcanize_public PORT=5432`
|
1. Run the migrations: `make migrate HOST_NAME=localhost NAME=vulcanize_public PORT=5432`
|
||||||
|
- There is an optional var `USER=username` if the database user is not the default user `postgres`
|
||||||
- To rollback a single step: `make rollback NAME=vulcanize_public`
|
- To rollback a single step: `make rollback NAME=vulcanize_public`
|
||||||
- To rollback to a certain migration: `make rollback_to MIGRATION=n NAME=vulcanize_public`
|
- To rollback to a certain migration: `make rollback_to MIGRATION=n NAME=vulcanize_public`
|
||||||
- To see status of migrations: `make migration_status NAME=vulcanize_public`
|
- To see status of migrations: `make migration_status NAME=vulcanize_public`
|
||||||
|
Loading…
Reference in New Issue
Block a user