update makefile commands

This commit is contained in:
nochill 2023-09-24 15:00:52 +07:00
parent 5368e934b6
commit 89ea569f36

View File

@ -8,12 +8,13 @@ migratedown:
migrate -path db/migrations -database "${DB_TYPE}://${DB_USERNAME}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_NAME}?sslmode=disable" -verbose down $n
migrate -path db/migrations -database "${DB_TYPE}://${DB_USERNAME}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_NAME}_test?sslmode=disable" -verbose down $n
seed:
./import_csv.sh
migraterestart:
$(MAKE) migratedown
$(MAKE) migrateup
seed:
./import_csv.sh
$(MAKE) seed
mock-generate:
mockgen -package mockdb -destination db/mock/store.go git.nochill.in/nochill/hiling_go/db/sqlc Store