-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (29 loc) · 858 Bytes
/
Copy pathMakefile
File metadata and controls
38 lines (29 loc) · 858 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# start and restart all the services
docker.up:
docker compose up
# stop running containers, also removes stopped containers
docker.down:
docker compose down
# only start a existing container
docker.start:
docker compose start
# only stop running container
docker.stop:
docker compose stop
# this script created a new SQL migration file inside `prisma/migrations`
# It executed the SQL migration file
# It ran prisma generate under the hood
prisma.migrate:
npx prisma migrate dev --name init
# generate database
prisma.generate:
npx prisma generate
# sync database with the Prisma schema
prisma.push:
npx prisma db push
# visual editor for the database
prisma.studio:
npx prisma studio
prisma.seed:
npx prisma db seed
PHONY: docker.up docker.down docker.start docker.stop prisma.migrate prisma.generate prisma.push prisma.studio prisma.seed