Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 1.21 KB

README.md

File metadata and controls

29 lines (19 loc) · 1.21 KB

Riser Server

GitHub Actions status

This is the server for the Riser Platform.

Development

This section will be improved as we're closer to accepting PRs from the community.

DB Migrations

Migration Tool: go get -u -d github.com/golang-migrate/migrate/cmd/migrate

Create a new migration

migrate create -dir migrations -format unix -ext sql addstuff

Note that this creates both an up and a down script. You should delete the down script. The philosophy is that migrations should be should always "roll forward".

Applying migrations

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.