You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/pages/docs/guides/cli.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -129,17 +129,18 @@ We strongly recommend enabling migrations if you are going to run your app in pr
129
129
130
130
### Resetting the database
131
131
132
-
From time to time, in development you may want to reset the database and recreate it from scratch. You can do this by passing the `--reset-db` flag:
132
+
From time to time, in development you may want to reset the database and recreate it from scratch.
133
+
You can do this by using Prisma:
133
134
134
135
```bash
135
-
$ keystone dev --reset-db
136
+
$ keystone prisma db push --force-reset
136
137
```
137
138
138
139
{% hint kind="error" %}
139
140
Doing this will destroy your database, including all data
140
141
{% /hint %}
141
142
142
-
This is mainly useful early in a project's development lifecycle, when you want to test database initialisation scripts or create a fresh set of test data.
143
+
This is typically useful early in a project's development lifecycle, when you want to test database initialisation scripts or create a fresh set of test data.
0 commit comments