update makefile commands

master
nochill 8 months ago
parent 5368e934b6
commit 89ea569f36

@ -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

Loading…
Cancel
Save