From 5bd73113932aff80634f7990c59c8cd6a229ca8d Mon Sep 17 00:00:00 2001 From: Oli Juhl <59018053+olivermrbl@users.noreply.github.com> Date: Fri, 15 Sep 2023 17:20:27 +0200 Subject: [PATCH] docs: Add upgrade guide for 1.16.0 (#5051) * docs: Add upgrade guide for 1.16.0 * Update www/docs/content/upgrade-guides/medusa-core/1-16-0.md Co-authored-by: Shahed Nasser * Update www/docs/content/upgrade-guides/medusa-core/1-16-0.md Co-authored-by: Shahed Nasser --------- Co-authored-by: Shahed Nasser --- .../upgrade-guides/medusa-core/1-16-0.md | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 www/docs/content/upgrade-guides/medusa-core/1-16-0.md diff --git a/www/docs/content/upgrade-guides/medusa-core/1-16-0.md b/www/docs/content/upgrade-guides/medusa-core/1-16-0.md new file mode 100644 index 0000000000..8f53b9a4e1 --- /dev/null +++ b/www/docs/content/upgrade-guides/medusa-core/1-16-0.md @@ -0,0 +1,55 @@ +--- +description: 'Actions Required for v.1.16.0' +sidebar_custom_props: + iconName: 'server-stack-solid' +--- + +# v1.16.0 + +Version 1.16.0 of Medusa introduces breaking changes to database schemas. + +## Overview + +This release contains a migration that changes the relationship between the `MoneyAmount` and `ProductVariant` entities from Many-to-One to Many-to-Many. + +Additionally, the following foreign key constraints have been dropped: + +:::note + +These changes are only relevant if you are using the feature flag `isolate_product_domain`. Please be careful about enabling this flag, as it will introduce experimental and work-in-progress changes. + +::: + +- `ProductTaxRate` to `Product` +- `ProductTypeTaxRate` to `ProductType` +- `ClaimItem` to `ProductVariant` +- `DiscountConditionProduct` to `Product` +- `DiscountConditionProductCollection` to `ProductCollection` +- `DiscountConditionProductTag` to `ProductTag` +- `DiscountConditionProductType` to `ProductType` +- `DiscountRule` to `Product` + +--- + +## How to Update + +Run the following command in your project: + +```bash npm2yarn +npm install @medusajs/medusa@1.16.0 +``` + +To avoid unexpected issues with dependencies, it is also recommended to update all other Medusa plugins or packages you have installed. + +--- + +## Actions Required + +### Run Migrations + +After updating your Medusa server and before running it, run the following command to run the latest migrations: + +```bash +npx medusa migrations run +``` +