This is the server for the Riser Platform.
This section will be improved as we're closer to accepting PRs from the community.
Migration Tool: go get -u -d github.com/golang-migrate/migrate/cmd/migrate
migrate create -dir migrations -format unix -ext sql addstuff
Note that this creates both an
up
and adown
script. You should delete thedown
script. The philosophy is that migrations should be should always "roll forward".
By default the riser server will apply database migrations if needed during startup. You may disable this behavior by setting the environment
variable RISER_POSTGRES_MIGRATE_ON_STARTUP=false
. To manually migrate, modify the connection string below and run:
migrate -source=file://migrations -database="postgres://user:password@postgreshost/riserdb" up
See the migrate documentation for more details.