Fix database experience (#2263)

This commit is contained in:
Lucas Bordeau
2023-10-27 17:48:06 +02:00
committed by GitHub
parent 3c6ce75606
commit 14ae8da424
6 changed files with 81 additions and 6 deletions

View File

@ -128,7 +128,7 @@ make sh
Then run commands through yarn:
```bash
cd server
yarn database:reset
yarn database:init
```

View File

@ -41,4 +41,21 @@ yarn lint
```
yarn test
```
```
## Resetting the database
If you want to reset the database, you can run the following command:
```bash
cd server
yarn database:reset
```
:::warning
This will drop the database and re-run the migrations and seed.
Make sure to back up any data you want to keep before running this command.
:::