From 2353719f44c96b5409b80139eb25c42f7f32e933 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Wed, 12 Apr 2023 11:16:52 +0300 Subject: [PATCH] docs: added note about migration script (#3809) --- .../modules/multiwarehouse/install-modules.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/docs/content/modules/multiwarehouse/install-modules.md b/docs/content/modules/multiwarehouse/install-modules.md index 6de84644af..de80d38a34 100644 --- a/docs/content/modules/multiwarehouse/install-modules.md +++ b/docs/content/modules/multiwarehouse/install-modules.md @@ -46,7 +46,9 @@ Run the following command to reflect schema changes into your database: medusa migrations run ``` -You can now start the Medusa backend and use the inventory module in your commerce application. +### Step 4: Run Migration Script + +After installing the Stock Location module, make sure to [run the migration script](#run-migration-script) --- @@ -84,4 +86,18 @@ Run the following command to reflect schema changes into your database: medusa migrations run ``` +### Step 4: Run Migration Script + +After installing both modules, make sure to [run the migration script](#run-migration-script) + +--- + +## Run Migration Script + +After installing both modules, run the following command to migrate current product variant information to fit the schema changes introduced by the modules: + +```bash +node ./node_modules/@medusajs/medusa/dist/scripts/migrate-inventory-items.js +``` + You can now start the Medusa backend and use the stock location module in your commerce application.