Skip to content

Commit

Permalink
docs: document new migration script option for db:migrate (medusajs#1…
Browse files Browse the repository at this point in the history
…0986)

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

* update versions
  • Loading branch information
shahednasser authored Jan 17, 2025
1 parent f15fb4d commit e3d5457
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
26 changes: 25 additions & 1 deletion www/apps/resources/app/medusa-cli/commands/db/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion www/apps/resources/generated/edit-dates.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit e3d5457

Please sign in to comment.