Skip to content

Commit 109ef9b

Browse files
committed
docs: update migration commands to include local migration execution
1 parent c73dcb0 commit 109ef9b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

adminforth/documentation/blog/2024-10-01-ai-blog/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ model ContentImage {
199199
Create a migration:
200200

201201
```bash
202-
npm run makemigration -- --name add-posts
202+
npm run makemigration -- --name add-posts && npm run migrate:local
203203
```
204204

205205

adminforth/documentation/docs/tutorial/01-helloWorld.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ model Post {
122122
Create database using `prisma migrate`:
123123

124124
```bash
125-
npm run makemigration --name init
125+
npm run makemigration --name init && npm run migrate:local
126126
```
127127

128128
## Setting up AdminForth

adminforth/documentation/docs/tutorial/05-Plugins/04-RichEditor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ model description_image {
159159
```
160160

161161
```bash
162-
npm run makemigration -- --name add_description_image
162+
npm run makemigration -- --name add_description_image && npm run migrate:local
163163
```
164164

165165
```bash

adminforth/documentation/docs/tutorial/05-Plugins/14-markdown.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ model description_image {
5151
```
5252

5353
```bash
54-
npm run makemigration -- --name add_description_image
54+
npm run makemigration -- --name add_description_image && npm run migrate:local
5555
```
5656

5757
```bash

0 commit comments

Comments
 (0)