update makefile commands
This commit is contained in:
parent
5368e934b6
commit
89ea569f36
7
Makefile
7
Makefile
@ -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}?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
|
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:
|
migraterestart:
|
||||||
$(MAKE) migratedown
|
$(MAKE) migratedown
|
||||||
$(MAKE) migrateup
|
$(MAKE) migrateup
|
||||||
|
$(MAKE) seed
|
||||||
seed:
|
|
||||||
./import_csv.sh
|
|
||||||
|
|
||||||
mock-generate:
|
mock-generate:
|
||||||
mockgen -package mockdb -destination db/mock/store.go git.nochill.in/nochill/hiling_go/db/sqlc Store
|
mockgen -package mockdb -destination db/mock/store.go git.nochill.in/nochill/hiling_go/db/sqlc Store
|
||||||
|
Loading…
Reference in New Issue
Block a user