docs: document links sync command (#8212)

* docs: document links sync command

* small wording fix

* sentence fix
This commit is contained in:
Shahed Nasser
2024-07-22 13:17:53 +03:00
committed by GitHub
parent ac21f35b2c
commit a2d08eb635
3 changed files with 22 additions and 46 deletions
@@ -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