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:
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.
ProductTaxRatetoProductProductTypeTaxRatetoProductTypeClaimItemtoProductVariantDiscountConditionProducttoProductDiscountConditionProductCollectiontoProductCollectionDiscountConditionProductTagtoProductTagDiscountConditionProductTypetoProductTypeDiscountRuletoProduct
How to Update
Run the following command in your project:
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: