Skip to content

Commit 6577ac6

Browse files
committed
generate typed sql on ci
1 parent edc739e commit 6577ac6

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ jobs:
5454
- name: 🖼 Build icons
5555
run: npm run build:icons
5656

57+
- name: 🧬 Generate Prisma client Typed SQL queries
58+
run: npx prisma generate --sql
59+
5760
- name: 🔎 Type check
5861
run: npm run typecheck --if-present
5962

docs/database.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ you can utilize Fly's `ssh` and `proxy` commands.
5959

6060
- Run in one terminal the command to start Prisma Studio on your desired Fly app
6161
```sh
62-
fly ssh console -C "npm run prisma:studio" --app [YOUR_APP_NAME]
62+
fly ssh console -C "npx prisma studio" --app [YOUR_APP_NAME]
6363
```
6464
- Run in a second terminal the command to proxy your local port 5556 to Prisma
6565
Studio
@@ -68,7 +68,8 @@ you can utilize Fly's `ssh` and `proxy` commands.
6868
```
6969

7070
If you have multiple instances of your app running, and you'd like to make edits
71-
to your database, you will need to run `prisma:studio` on the primary instance.
71+
to your database, you will need to run `npx prisma studio` on the primary
72+
instance.
7273

7374
- Get a list of your app instances, the `ROLE` column will show which instance
7475
is `primary`
@@ -77,7 +78,7 @@ to your database, you will need to run `prisma:studio` on the primary instance.
7778
```
7879
- Run the console command with the `-s` select flag
7980
```sh
80-
fly ssh console -C "npm run prisma:studio" -s --app [YOUR_APP_NAME]
81+
fly ssh console -C "npx prisma studio" -s --app [YOUR_APP_NAME]
8182
```
8283
- Use your arrow keys to select the primary instance
8384

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"predev": "npm run build:icons --silent",
1818
"dev": "cross-env NODE_ENV=development MOCKS=true node ./server/dev-server.js",
1919
"dev:no-mocks": "cross-env NODE_ENV=development node ./server/dev-server.js",
20-
"prisma:studio": "prisma studio",
2120
"format": "prettier --write .",
2221
"lint": "eslint .",
2322
"setup": "npm run build && prisma generate && prisma migrate reset --force && playwright install",

0 commit comments

Comments
 (0)