Skip to content

Commit 398c243

Browse files
committed
docs: update migration commands in plugin tutorials to use npm scripts
1 parent 4a67771 commit 398c243

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

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-
npx --yes prisma migrate dev --name add-audit-logs
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-
npx --yes prisma migrate dev --name add-ip-address-to-audit-logs
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: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ model adminuser {
3131
Then:
3232
3333
```bash
34-
npx --yes prisma migrate dev --name init
34+
npm run makemigration -- --name add-2fa-secret && npm run migrate:local
35+
36+
3537
```
3638
3739
And add it to `adminuser.ts`

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ model adminuser {
5050
And prisma migrate:
5151
5252
```bash
53-
npx --yes prisma migrate dev --name add-email-confirmed-to-adminuser
53+
npm run makemigration -- --name add-email-confirmed-to-adminuser && npm run migrate:local
54+
55+
5456
```
5557
5658
Next, install the `@adminforth/email-adapter-aws-ses` package:

0 commit comments

Comments
 (0)