Categorygithub.com/estafette/estafette-ci-db-migrator
modulepackage
1.0.244
Repository: https://github.com/estafette/estafette-ci-db-migrator.git
Documentation: pkg.go.dev

# README

Estafette CI

The estafette-ci-db-migrator component is part of the Estafette CI system documented at https://estafette.io.

Please file any issues related to Estafette CI at https://github.com/estafette/estafette-ci-central/issues

Estafette-ci-db-migrator

This component runs as a Kubernetes job to update the database schema if needed.

Development

To start development run

git clone [email protected]:estafette/estafette-ci-db-migrator.git
cd estafette-ci-db-migrator

To add a new migration script

go get -u github.com/pressly/goose/cmd/goose
cd migrations
goose create create_some_table sql

And then edit the newly created script in the migrations folder.

Before committing your changes run

go test ./...
go mod tidy

# Functions

NewDBClient returns a new .DBClient.

# Interfaces

DBClient is the interface for communicating with DB.