Skip to content

Commit a39d222

Browse files
committed
docs: correct makemigration command
1 parent 804b8bb commit a39d222

File tree

14 files changed

+21
-21
lines changed

14 files changed

+21
-21
lines changed

adminforth/commands/createApp/templates/readme.md.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Open `schema.prisma` and change schema as needed: add new tables, columns, etc (
2626
Run the following command to generate a new migration and apply it instantly in local database:
2727

2828
```bash
29-
pnpm makemigration -- --name <name_of_changes>
29+
pnpm makemigration --name <name_of_changes>
3030
```
3131

3232
Your colleagues will need to pull the changes and run `pnpm migrate:local` to apply the migration in their local database.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ The CLI will create boilerplate files and folders in your current directory and
6060
myadmin/
6161
├── custom
6262
│ ├── assets/ # Static assets like images, fonts, etc.
63-
│ ├── package.json # For any custom npm packages you will use in Vue files
6463
│ └── tsconfig.json # Tsconfig for Vue project (adds completion for AdminForth core components)
6564
├── resources
6665
│ └── adminuser.ts # Example resource file for users management
6766
├── schema.prisma # Prisma schema file for database schema
6867
├── index.ts # Main entry point: configures AdminForth & starts the server
6968
├── package.json # Project dependencies
69+
├── pnpm-workspace.yaml
7070
├── tsconfig.json # TypeScript configuration
7171
├── .env # Env vars like tokens, secrets that should not be in version control
7272
├── .env.local # General local environment variables
@@ -173,7 +173,7 @@ model apartments {
173173
Run the following command to create a new migration:
174174

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

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

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ model audit_logs {
4040
And `prisma migrate`:
4141
4242
```bash
43-
pnpm makemigration -- --name add-audit-logs ; pnpm migrate:local
43+
pnpm makemigration --name add-audit-logs ; pnpm migrate:local
4444
```
4545
4646
Also to make this code start
@@ -205,7 +205,7 @@ model audit_logs {
205205
And `prisma migrate`:
206206
207207
```bash
208-
pnpm makemigration -- --name add-ip-address-to-audit-logs ; pnpm migrate:local
208+
pnpm makemigration --name add-ip-address-to-audit-logs ; pnpm migrate:local
209209
```
210210
211211
Also, update the resource configuration in `./resources/auditLogs.ts`:
@@ -271,7 +271,7 @@ model audit_logs {
271271
And `prisma migrate`:
272272
273273
```bash
274-
pnpm makemigration -- --name add-ip-address-to-audit-logs ; pnpm migrate:local
274+
pnpm makemigration --name add-ip-address-to-audit-logs ; pnpm migrate:local
275275
```
276276
277277
Update the resource configuration in `./resources/auditLogs.ts`:

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ model adminuser {
4141
Then:
4242
4343
```bash
44-
pnpm makemigration -- --name add-2fa-secret ; pnpm migrate:local
44+
pnpm makemigration --name add-2fa-secret ; pnpm migrate:local
4545
```
4646
4747
And add it to `adminuser.ts`
@@ -150,7 +150,7 @@ model adminuser {
150150
Then run:
151151
152152
```bash
153-
pnpm makemigration -- --name add-use2fa ; pnpm migrate:local
153+
pnpm makemigration --name add-use2fa ; pnpm migrate:local
154154
```
155155
156156
Then in `adminuser.ts`:
@@ -641,7 +641,7 @@ First, you need to create a passkeys table in your schema.prisma file:
641641
And make migration:
642642
643643
```bash
644-
pnpm makemigration -- --name add-passkeys ; pnpm migrate:local
644+
pnpm makemigration --name add-passkeys ; pnpm migrate:local
645645
```
646646
647647
Next, you need to create a new resource for passkeys:

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

165165
```bash

adminforth/documentation/docs/tutorial/08-Plugins/05-0-upload.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ model apartments {
100100
Migrate prisma schema:
101101
102102
```bash
103-
pnpm makemigration -- --name add-apartment-image ; pnpm migrate:local
103+
pnpm makemigration --name add-apartment-image ; pnpm migrate:local
104104
```
105105
106106
Add column to `aparts` resource configuration:
@@ -531,7 +531,7 @@ To do this add avatar column to the user resource:
531531
Then make migration:
532532
533533
```bash
534-
pnpm makemigration -- --name add-user-avatar-field ; pnpm migrate:local
534+
pnpm makemigration --name add-user-avatar-field ; pnpm migrate:local
535535
```
536536
537537
Add this column to the users resource:

adminforth/documentation/docs/tutorial/08-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-
pnpm makemigration -- --name add-email-confirmed-to-adminuser ; pnpm migrate:local
53+
pnpm makemigration --name add-email-confirmed-to-adminuser ; pnpm migrate:local
5454

5555

5656
```

adminforth/documentation/docs/tutorial/08-Plugins/11-oauth.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ model adminuser {
8484
2. Run the migration:
8585

8686
```bash
87-
pnpm makemigration -- --name add-email-confirmed-to-adminuser ; pnpm migrate:local
87+
pnpm makemigration --name add-email-confirmed-to-adminuser ; pnpm migrate:local
8888
```
8989

9090
3. Configure the plugin with `emailConfirmedField`:
@@ -419,7 +419,7 @@ model adminuser {
419419
And make migration:
420420

421421
```bash
422-
pnpm makemigration -- --name add-avatar-field ; pnpm migrate:local
422+
pnpm makemigration --name add-avatar-field ; pnpm migrate:local
423423
```
424424

425425
Then add this field to users resource and install upload plugin:

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

5757
```bash

adminforth/documentation/docs/tutorial/08-Plugins/16-email-invite.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ model adminuser {
144144
Run the migration:
145145

146146
```bash
147-
pnpm makemigration -- --name add-email-confirmed ; pnpm migrate:local
147+
pnpm makemigration --name add-email-confirmed ; pnpm migrate:local
148148
```
149149

150150
Then update your resource configuration:

0 commit comments

Comments
 (0)