Open okechukwu0127 opened 5 days ago
Hi Thank you for highlighting this issue.
Apparently the issue was due to the fact that I was pointing the strapi DB to the same DB use by my medusa backend. To resolve this, I provided a separate DB to Strapi and Medusa and Puff, the error when away
Describe the bug A clear and concise description of what the bug is. I have the medusa backend running 100% with no issues. I am also able to run the medusa frontend and they both communicate properly.
After installing strapi for medusa as specified in the documentation https://docs.medusajs.com/plugins/cms/strapi I get the following error when I try to run the command
npm run develop
inside thepackage/medusa-strapi
foldererror: alter table "public"."product_tags_products_links" add constraint "product_tags_products_links_fk" foreign key ("product_tag_id") references "public"."product_tags" ("id") on delete CASCADE - there is no unique constraint matching given keys for referenced table "product_tags"
To Reproduce Steps to reproduce the behavior:
Expected behavior Strapi Server should run successfully after running the npm run develop command from the medusa-strapi folder
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context Add any other context about the problem here.
To resolve the issue, I added the id field to product_tags and executed the command but the error persisted
Kindly direct me on why I am getting this error