feat(link-modules,modules-sdk,pricing): Medusa App Migrations + Core compatible migrations (#5317)

* chore: remove skipping logic for migrations

* chore: medusa app returns migrations to run for modules

* chore: added migration for feature compatible

* chore: added changelog

* chore: create table only if it does not exist

* chore: update migration to pluck from registered modules

* chore: cleanup

* chore: make product an internal service temp

* chore: added options and deps to module

* chore: added link module options

* chore: remove duplicate

* chore: added missing column names in core + remove from model

* chore: scope migrations to only to create if not exist - money amount, currency

---------

Co-authored-by: Sebastian Rindom <skrindom@gmail.com>
This commit is contained in:
Riqwan Thamir
2023-10-10 16:23:38 +02:00
committed by GitHub
co-authored by Sebastian Rindom
parent 57bd38bb4b
commit b62af612c7
6 changed files with 74 additions and 23 deletions
@@ -21,6 +21,8 @@ export const ProductVariantPriceSet: ModuleJoinerConfig = {
relationships: [
{
serviceName: Modules.PRODUCT,
// TODO: Remove this when product module is the default product service
isInternalService: true,
primaryKey: "id",
foreignKey: "variant_id",
alias: "variant",