You are developing a module and need to add another column to a table introduced by another module MyCompany_MyModule via db schema.
How do you do that?
A. Create a etc/db_schema.xml file in your module, add the column and run bin/magento setup: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
You are developing a module and need to add another column to a table introduced by another module MyCompany_MyModule vi
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
You are developing a module and need to add another column to a table introduced by another module MyCompany_MyModule vi
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!