Skip to content

Commit

Permalink
Merge pull request #12 from Nuxify/feature/version-force-database-mig…
Browse files Browse the repository at this point in the history
…ration

feat: include version and force in database migration makefile commands
  • Loading branch information
kabaluyot authored Sep 7, 2024
2 parents 7f182ba + 4033c54 commit 252606b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,13 @@ migrate-up:
migrate-down:
migrate -path infrastructures/database/mysql/migrations -database "mysql://${DB_USERNAME}:${DB_PASSWORD}@tcp(${DB_HOST}:${DB_PORT})/${DB_DATABASE}" -verbose down ${STEPS}

.PHONY: migrate-version
migrate-version:
migrate -path infrastructures/database/mysql/migrations -database "mysql://${DB_USERNAME}:${DB_PASSWORD}@tcp(${DB_HOST}:${DB_PORT})/${DB_DATABASE}" version

.PHONY: migrate-force
migrate-force:
migrate -path infrastructures/database/mysql/migrations -database "mysql://${DB_USERNAME}:${DB_PASSWORD}@tcp(${DB_HOST}:${DB_PORT})/${DB_DATABASE}" force ${STEPS}

proto-record:
protoc --go_out=plugins=grpc:. --go_opt=paths=source_relative module/record/interfaces/http/grpc/pb/record.proto

0 comments on commit 252606b

Please sign in to comment.