Open gempain opened 4 months ago
We could remove the billing_address_id
from the customer table and introduce a flag on the address to indicate whether or not it is the customer's default billing address. This has been done for the customer model in version 2.0.
For 1.*, this requires a few changes. We likely won't fix it in the near term. If this is proving to be a huge pain for you, you are more than welcome to send a PR for it.
Not a pain for me, just wanted to raise the point. Wait, there's a 2.0 coming out ? When's that happening ?
Aw, okay found this. Btw @olivermrbl I PMed you on X ;)
Must have missed this, will check it!
Wait, there's a 2.0 coming out ? When's that happening ?
Release candidate is expected in ~1 month.
Wait, there's a 2.0 coming out ? When's that happening ?
Release candidate is expected in ~1 month.
Can't wait !
Given our upcoming 2.0 release, I will label this as a wont-fix. I'll gladly reopen the issue if something is experiencing issues with this.
Bug report
Describe the bug
Field
billing_address_id
in tablecustomer
is not referenced in theCustomer
model. Also, it has a foreign keyFK_8abe81b9aac151ae60bf507ad15
onaddress.id
which creates a dealock with foreign keyFK_9c9614b2f9d01665800ea8dbff7
fromaddress.customer_id
which points tocustomer.id
.System information
Medusa version (including plugins): "@medusajs/medusa": "1.20.2",
Steps to reproduce the behavior
Expected behavior
Column
billing_address_id
should either be dropped, or referenced in theCustomer
model.Screenshots
Code snippets
Additional context