Version 1.16.0 of Medusa introduces breaking changes to database schemas.
This release contains a migration that changes the relationship between the
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.
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.
After updating your Medusa server and before running it, run the following command to run the latest migrations: