Skip to content

anfern777/go-api-poc

Repository files navigation

GOLANG API POC

Migration UP

$ migrate -path database/migration/ -database "postgresql://username:secretkey@localhost:5432/database_name?sslmode=disable" -verbose up

Migration DOWN

$ migrate -path database/migration/ -database "postgresql://username:secretkey@localhost:5432/database_name?sslmode=disable" -verbose down

Resolve migration errors

It is necessary to determine if the migration was applied partially or not at all. Once you've determined this, the database version should be forced to reflect its true state using the force command.

$ migrate -path database/migration/ -database "postgresql://username:secretkey@localhost:5432/database_name?sslmode=disable" force <VERSION>

About

POC of a Golang CRUD API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published