chore: add goose migration tasks to Taskfile
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
7f437949b1
commit
bdd05b0315
1 changed files with 23 additions and 1 deletions
24
Taskfile.yml
24
Taskfile.yml
|
|
@ -1,4 +1,5 @@
|
|||
version: "3"
|
||||
dotenv: ['.env']
|
||||
vars:
|
||||
TEMPL_PROXYBIND: '{{.TEMPL_PROXYBIND | default "127.0.0.1"}}'
|
||||
TEMPL_PROXYPORT: '{{.TEMPL_PROXYPORT | default "7331"}}'
|
||||
|
|
@ -52,7 +53,28 @@ tasks:
|
|||
desc: Sets up the local development environment
|
||||
cmds:
|
||||
- cp .env.include.example .env
|
||||
- go-task generate-secrets
|
||||
- task generate-secrets
|
||||
- task migrate-up
|
||||
migrate-status:
|
||||
desc: Check migration status
|
||||
cmds:
|
||||
- goose status
|
||||
migrate-up:
|
||||
desc: Apply migrations
|
||||
cmds:
|
||||
- goose up
|
||||
migrate-down:
|
||||
desc: Rollback one migration
|
||||
cmds:
|
||||
- goose down
|
||||
migrate-down-all:
|
||||
desc: Rollback all migrations
|
||||
cmds:
|
||||
- goose down-to 0
|
||||
make-migration:
|
||||
desc: Create a new migration
|
||||
cmds:
|
||||
- goose create {{.CLI_ARGS}} sql -s
|
||||
generate-secrets:
|
||||
desc: Generates a random GOSHOP_APP_KEY and sets it in .env
|
||||
cmds:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue