Skip to content

Commit

Permalink
Ctrl+S auto formating failed me, sorry
Browse files Browse the repository at this point in the history
  • Loading branch information
MocicaRazvan committed Jan 15, 2024
1 parent 35af962 commit 4425f8b
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,20 @@ npm run lint
To run run prisma, you have two steps:

- First is to generate the schema in the database:
- To just generate the database and not create a migration:
```bash
npx prisma db push
```

- To generate the database and also create a migration:
```bash
npx prisma migrate dev --name init
```

- To just generate the database and not create a migration:

```bash
npx prisma db push
```

- To generate the database and also create a migration:
```bash
npx prisma migrate dev --name init
```

- Second is to generate the prisma client. This step is required also after every pull because prisma client is stored in the `node_modules` folder which is in the `.gitignore`

```bash
npx prisma generate
```

0 comments on commit 4425f8b

Please sign in to comment.