Skip to main content
Skip to main content

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:

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:

npx medusa migrations run
Was this section helpful?