medusajs / medusa

Building blocks for digital commerce
https://medusajs.com
MIT License
23.7k stars 2.28k forks source link

Issue with migration generation #7868

Open as-as2018 opened 6 days ago

as-as2018 commented 6 days ago

Preliminary Checks

Issue Summary

I was setup new medusa and i want to create marketplace for that i was extended entities like store, user, product, order and also create migration manually but i'm facing issue migration error when run migration order of the migration is conflicting and it also time taking to create manually migration file. to generate migration i it should be automatically generated no matter it is extended or not.

How can this issue be resolved?

1. 2. 3. ...

Are you interested in working on this issue?

humbleEwan commented 2 days ago

It is bugged. You cannot extend OR (which is more annoying) make connections to any Medusa Entity. What you can do as a workaround is to manually make the connection table and have a field of the other Entity id, but do not actually connect them. Then from any service you can manually get the other entity by ID. Hope this helps.