docs: document new migration script option for db:migrate (#10986)

* docs: document new migration script option for db:migrate

* update versions
This commit is contained in:
Shahed Nasser
2025-01-17 17:41:49 +02:00
committed by GitHub
parent f15fb4d4fa
commit e3d5457b5c
2 changed files with 26 additions and 2 deletions

View File

@@ -276,7 +276,7 @@ npx medusa db:generate <module_names...>
## db\:migrate
Run the latest migrations to reflect changes on the database, and sync link definitions with the database.
Run the latest migrations to reflect changes on the database, sync link definitions with the database, and run migration data scripts.
```bash
npx medusa db:migrate
@@ -325,6 +325,30 @@ Use this command if you've updated the Medusa packages, or you've created custom
<Table.Row>
<Table.Cell>
`--skip-scripts`
</Table.Cell>
<Table.Cell>
Skip running data migration scripts. This option is added starting from
[Medusa v2.3.0](https://github.com/medusajs/medusa/releases/tag/v2.3.0).
</Table.Cell>
<Table.Cell>
No
</Table.Cell>
<Table.Cell>
Data migration scripts are run by default starting from
[Medusa v2.3.0](https://github.com/medusajs/medusa/releases/tag/v2.3.0).
</Table.Cell>
</Table.Row>
<Table.Row>
<Table.Cell>
`--execute-safe-links`
</Table.Cell>

View File

@@ -591,7 +591,7 @@ export const generatedEditDates = {
"references/types/NotificationTypes/interfaces/types.NotificationTypes.ProviderSendNotificationDTO/page.mdx": "2024-12-17T16:57:21.138Z",
"references/types/interfaces/types.BaseProductCategory/page.mdx": "2024-12-23T13:57:05.885Z",
"references/types/types.NotificationTypes/page.mdx": "2024-11-25T17:49:28.027Z",
"app/medusa-cli/commands/db/page.mdx": "2024-08-28T11:26:33.889Z",
"app/medusa-cli/commands/db/page.mdx": "2025-01-16T07:34:08.014Z",
"app/medusa-cli/commands/develop/page.mdx": "2024-08-28T10:43:45.452Z",
"app/medusa-cli/commands/exec/page.mdx": "2024-08-28T10:45:31.229Z",
"app/medusa-cli/commands/new/page.mdx": "2024-08-28T10:43:34.110Z",