From e3d5457b5c990bb230daebe316ee2486913c27f6 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Fri, 17 Jan 2025 17:41:49 +0200 Subject: [PATCH] docs: document new migration script option for db:migrate (#10986) * docs: document new migration script option for db:migrate * update versions --- .../app/medusa-cli/commands/db/page.mdx | 26 ++++++++++++++++++- www/apps/resources/generated/edit-dates.mjs | 2 +- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/www/apps/resources/app/medusa-cli/commands/db/page.mdx b/www/apps/resources/app/medusa-cli/commands/db/page.mdx index 8f70bd6835..d21c93f27f 100644 --- a/www/apps/resources/app/medusa-cli/commands/db/page.mdx +++ b/www/apps/resources/app/medusa-cli/commands/db/page.mdx @@ -276,7 +276,7 @@ npx medusa db:generate ## 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 + `--skip-scripts` + + + + + 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). + + + + + No + + + + + Data migration scripts are run by default starting from + [Medusa v2.3.0](https://github.com/medusajs/medusa/releases/tag/v2.3.0). + + + + + + `--execute-safe-links` diff --git a/www/apps/resources/generated/edit-dates.mjs b/www/apps/resources/generated/edit-dates.mjs index bb1f92a047..2654962a9d 100644 --- a/www/apps/resources/generated/edit-dates.mjs +++ b/www/apps/resources/generated/edit-dates.mjs @@ -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",