How do you do that?

You are developing a module and need to add another column to a table introduced by another module MyCompany_MyModulevia db schema.

How do you do that?
A . Create a etc/db_schema.xml file in your module, add the column and run bin/magentosetup:upgrade
B . Create a etc/db.xml file in your module, add the column and run bin/magento setup:db­schema:upgrade
C . Run a command: bin/magento setup:db-schema:upgrade <table> <column definition>
D . Create a etc/db_schema_whitelist.json file in your module, add the column and run bin/magento setup:upgrade

Answer: C

Subscribe
Notify of
guest
1 Comment
Inline Feedbacks
View all comments
bot
bot
3 years ago

This answer is wrong, there is no such command like bin/magento setup:db-schema:upgrade

Correct answer: A . Create a etc/db_schema.xml file in your module, add the column and run bin/magentosetup:upgrade