CLI for running migrations and generators in go apps.
go install github.com/nrfta/go-tiger/cmd/tiger@latestThis project uses go-config to load
the configuration of your project. We will find the root of your project
(where go.mod is saved) and than look at the config directory. We will only
read the JSON files.
Available Commands:
db Database related operations
generate Generate files
help Help about any command
task Run grift tasks
Run grift tasks.
Available Commands:
| command | description |
|---|---|
| create | Create database |
| drop | Drop database |
| migrate | Execute database migrations |
| reset | Runs drop, create and migrate up |
| seed | Runs grift task db:seed |
Create the development database:
tiger db createCreate the test database:
ENV=test tiger db createDrop database:
tiger db dropWe support migration files defined in db/migrations. We used migrate internally.
Available Commands:
| command | description |
|---|---|
| up | Run migrations in the up direction |
| down | Run migrations in the down direction |
| command | description |
|---|---|
| migration | Generates a migration file |
This project is licensed under the MIT License.