Halloween Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: xmasmnth

How do you add a foreign key to an existing table created by another module?

How do you add a foreign key to an existing table created by another module?

A.

Create etc/db_schema.xml file with the table node and constraint child node

B.

Run the command bin/magento setup:db-schema:upgrade

C.

This can only be done with raw SQL in a Schema Patch file

D.

Create the etc/db_constraints.xml file and specify foreign key there in the constraint node

Magento Magento-2-Certified-Associate-Developer Summary

  • Vendor: Magento
  • Product: Magento-2-Certified-Associate-Developer
  • Update on: Oct 21, 2025
  • Questions: 103
Price: $52.5  $149.99
Buy Now Magento-2-Certified-Associate-Developer PDF + Testing Engine Pack

Payments We Accept

Your purchase with ExamsVCE is safe and fast. Your products will be available for immediate download after your payment has been received.
The ExamsVCE website is protected by 256-bit SSL from McAfee, the leader in online security.

examsvce payment method