This section will be improved as we're closer to accepting PRs from the community.
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
downscript. You should delete the
downscript. 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
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.
There is no documentation for this package.
Package api contains routes, client models, and API related utilities.
|Package api contains routes, client models, and API related utilities.|
Package v1 contains the v1 api and client models.
|Package v1 contains the v1 api and client models.|
KNative is not yet consumable using Go Modules (https://github.com/knative/serving/issues/3368).
|KNative is not yet consumable using Go Modules (https://github.com/knative/serving/issues/3368).|