Command line tool for PostgreSQL migrations
Command line tool for PostgreSQL migrations
schema_migrations
.migrate -path ./db/migrations create add_field_to_table
migrate -url postgres://user@host:port/database -path ./db/migrations -timeout 10 up
migrate -url postgres://user@host:port/database -path ./db/migrations -timeout 10 up 1
migrate -url postgres://user@host:port/database -path ./db/migrations -timeout 10 down
migrate -url postgres://user@host:port/database -path ./db/migrations -timeout 10 down 1
migrate help # for more info
Install golangci-lint with
go get -u github.com/golangci/golangci-lint/cmd/golangci-lint github.com/securego/gosec/cmd/gosec
wallester/migrate
repo. Next steps are to be done in the wallester/migrate repo
(not the fork).git remote add myfork url-of-myfork
).git push myfork mybranch
).