Fix database experience (#2263)
This commit is contained in:
@ -128,7 +128,7 @@ make sh
|
||||
Then run commands through yarn:
|
||||
```bash
|
||||
cd server
|
||||
yarn database:reset
|
||||
yarn database:init
|
||||
```
|
||||
|
||||
|
||||
|
||||
@ -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.
|
||||
|
||||
:::
|
||||
Reference in New Issue
Block a user