File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
adminforth/documentation/docs/tutorial/07-Plugins Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ model audit_logs {
41
41
And ` prisma migrate ` :
42
42
43
43
` ` ` bash
44
- npx -- yes prisma migrate dev -- name add - audit - logs
44
+ npm run makemigration -- -- name add - audit - logs && npm run migrate : local
45
45
` ` `
46
46
47
47
Also to make this code start
@@ -202,7 +202,7 @@ model audit_logs {
202
202
And ` prisma migrate ` :
203
203
204
204
` ` ` 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
206
206
` ` `
207
207
208
208
Also, update the resource configuration in ` ./ resources / auditLogs .ts ` :
Original file line number Diff line number Diff line change @@ -31,7 +31,9 @@ model adminuser {
31
31
Then:
32
32
33
33
` ` ` bash
34
- npx -- yes prisma migrate dev -- name init
34
+ npm run makemigration -- -- name add - 2fa - secret && npm run migrate : local
35
+
36
+
35
37
` ` `
36
38
37
39
And add it to ` adminuser .ts `
Original file line number Diff line number Diff line change @@ -50,7 +50,9 @@ model adminuser {
50
50
And prisma migrate:
51
51
52
52
` ` ` 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
+
54
56
` ` `
55
57
56
58
Next, install the ` @adminforth / email - adapter - aws - ses ` package:
You can’t perform that action at this time.
0 commit comments