docs: replace usages of migrations and links commands (#8894)

This commit is contained in:
Shahed Nasser
2024-08-30 11:48:49 +03:00
committed by GitHub
parent 9b6c2e5efa
commit 8c82207a41
12 changed files with 39 additions and 51 deletions
@@ -252,21 +252,15 @@ This defines a list link to the `Order` data model since a subscription has mult
To create a table for the `Subscription` data model in the database, start by generating the migrations for the Subscription Module with the following command:
```bash
npx medusa migrations generate subscriptionModuleService
npx medusa db:generate subscriptionModuleService
```
This generates a migration in the `src/modules/subscriptions/migrations` directory.
Then, to reflect the migration in the database, run the following command:
Then, to reflect the migration and links 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
npx medusa db:migrate
```
---