Magento 2 Certified Associate Developer Exam Magento-2-Certified-Associate-Developer Question # 6 Topic 1 Discussion

Magento 2 Certified Associate Developer Exam Magento-2-Certified-Associate-Developer Question # 6 Topic 1 Discussion

Magento-2-Certified-Associate-Developer Exam Topic 1 Question 6 Discussion:
Question #: 6
Topic #: 1

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 <title>


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


Get Premium Magento-2-Certified-Associate-Developer Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.