Skip to content

Commit

Permalink
docs(server-commands): fix typo in command to generate migrations (#9545
Browse files Browse the repository at this point in the history
)

- the command had `--migration:generate` instead of `migration:generate`
written in the doc
- when copy pasting it we got this error
```
Not enough non-option arguments: got 0, need at least 1
```
- after removing the extra `--` it worked as expected
  • Loading branch information
nicolasrouanne authored Jan 10, 2025
1 parent b46bc84 commit 07fa58b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ npx nx run twenty-server:database:reset
#### For objects in Core/Metadata schemas (TypeORM)

```bash
npx nx run twenty-server:typeorm --migration:generate src/database/typeorm/metadata/migrations/nameOfYourMigration -d src/database/typeorm/metadata/metadata.datasource.ts # replace by core data source if necessary
npx nx run twenty-server:typeorm migration:generate src/database/typeorm/metadata/migrations/nameOfYourMigration -d src/database/typeorm/metadata/metadata.datasource.ts # replace by core data source if necessary
```

#### For Workspace objects
Expand Down Expand Up @@ -98,4 +98,4 @@ Here's what the tech stack now looks like.
**Development**
- [AWS EKS](https://aws.amazon.com/eks/)

<ArticleEditContent></ArticleEditContent>
<ArticleEditContent></ArticleEditContent>

0 comments on commit 07fa58b

Please sign in to comment.