CLI for running migrations and generators in go apps.
go install github.com/nrfta/go-tiger/cmd/tiger@latest
This 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 create
Create the test database:
ENV=test tiger db create
Drop database:
tiger db drop
We 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.