docs: document links sync command (#8212)
* docs: document links sync command * small wording fix * sentence fix
This commit is contained in:
@@ -208,7 +208,7 @@ This adds a list link between the `Vendor` and `Order` data models, indicating t
|
||||
|
||||
---
|
||||
|
||||
## Step 3: Generate and Run Migrations
|
||||
## Step 3: Run Migrations and Sync Links
|
||||
|
||||
To create tables for the marketplace data models in the database, start by generating the migrations for the Marketplace Module with the following command:
|
||||
|
||||
@@ -218,12 +218,18 @@ npx medusa migrations generate marketplaceModuleService
|
||||
|
||||
This generates a migration in the `src/modules/marketeplace/migrations` directory.
|
||||
|
||||
Then, to reflect the migration and the module links in the database, run the following command:
|
||||
Then, to reflect the migration in the database, run the following command:
|
||||
|
||||
```bash
|
||||
npx medusa migrations run
|
||||
```
|
||||
|
||||
Next, to reflect your links in the database, run the `links sync` command:
|
||||
|
||||
```bash
|
||||
npx medusa links sync
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Step 4: Create Vendor Admin Workflow
|
||||
|
||||
Reference in New Issue
Block a user