-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (18 loc) · 689 Bytes
/
Makefile
File metadata and controls
24 lines (18 loc) · 689 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
mock:
mockery --all --keeptree
migrate:
migrate -source file://postgres/migrations \
-database postgres://postgres:postgres@127.0.0.1:5432/twitter_clone_development?sslmode=disable up
rollback:
migrate -source file://postgres/migrations \
-database postgres://postgres:postgres@127.0.0.1:5432/twitter_clone_development?sslmode=disable down 1
drop:
migrate -source file://postgres/migrations \
-database postgres://postgres:postgres@127.0.0.1:5432/twitter_clone_development?sslmode=disable drop
migration:
@read -p "Enter migration name: " name; \
migrate create -ext sql -dir postgres/migrations $$name
run:
go run cmd/graphqlserver/*.go
generate:
go generate ./..