Skip to content

Commit ca8d86c

Browse files
committed
docs: update migration commands in tutorials to use semicolon instead of && for better clarity
1 parent 398c243 commit ca8d86c

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
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 && npm run migrate:local
202+
npm run makemigration -- --name add-posts ; npm run migrate:local
203203
```
204204

205205

adminforth/documentation/docs/tutorial/001-gettingStarted.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ This will create a migration file in `migrations` and apply it to the database.
8989
In future, when you need to add new resources, you need to modify `schema.prisma` (add models, change fields, etc.). After doing any modification you need to create a new migration using next command:
9090

9191
```bash
92-
npm run makemigration -- --name init && npm run migrate:local
92+
npm run makemigration -- --name init ; npm run migrate:local
9393
```
9494

9595
Other developers need to pull migration and run `npm run migrateLocal` to apply any unapplied migrations.
@@ -173,7 +173,7 @@ model apartments {
173173
Run the following command to create a new migration:
174174

175175
```bash
176-
npm run makemigration -- --name add-apartments && npm run migrate:local
176+
npm run makemigration -- --name add-apartments ; npm run migrate:local
177177
```
178178

179179
### Step3. Create the `apartments` resource

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 && npm run migrate:local
125+
npm run makemigration --name init ; npm run migrate:local
126126
```
127127

128128
## Setting up AdminForth

adminforth/documentation/docs/tutorial/07-Plugins/01-AuditLog.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ model audit_logs {
4141
And `prisma migrate`:
4242
4343
```bash
44-
npm run makemigration -- --name add-audit-logs && npm run migrate:local
44+
npm run makemigration -- --name add-audit-logs ; npm run migrate:local
4545
```
4646
4747
Also to make this code start
@@ -202,7 +202,7 @@ model audit_logs {
202202
And `prisma migrate`:
203203
204204
```bash
205-
npm run makemigration -- --name add-ip-address-to-audit-logs && npm run migrate:local
205+
npm run makemigration -- --name add-ip-address-to-audit-logs ; npm run migrate:local
206206
```
207207
208208
Also, update the resource configuration in `./resources/auditLogs.ts`:

adminforth/documentation/docs/tutorial/07-Plugins/02-TwoFactorsAuth.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ model adminuser {
3131
Then:
3232
3333
```bash
34-
npm run makemigration -- --name add-2fa-secret && npm run migrate:local
34+
npm run makemigration -- --name add-2fa-secret ; npm run migrate:local
3535

3636

3737
```
@@ -137,7 +137,7 @@ model adminuser {
137137
Then run:
138138
139139
```bash
140-
npx --yes prisma migrate dev --name add-use2fa
140+
npm run makemigration -- --name add-use2fa ; npm run migrate:local
141141
```
142142
143143
Then in `adminuser.ts`:

adminforth/documentation/docs/tutorial/07-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 && npm run migrate:local
162+
npm run makemigration -- --name add_description_image ; npm run migrate:local
163163
```
164164

165165
```bash

adminforth/documentation/docs/tutorial/07-Plugins/09-open-signup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ model adminuser {
5050
And prisma migrate:
5151
5252
```bash
53-
npm run makemigration -- --name add-email-confirmed-to-adminuser && npm run migrate:local
53+
npm run makemigration -- --name add-email-confirmed-to-adminuser ; npm run migrate:local
5454

5555

5656
```

adminforth/documentation/docs/tutorial/07-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 && npm run migrate:local
54+
npm run makemigration -- --name add_description_image ; npm run migrate:local
5555
```
5656

5757
```bash

0 commit comments

Comments
 (0)