QuestionQ14
Working with Databases and EAVAn Adobe Commerce developer is building a Marketplace module (Vendor_ModuleName). The module creates a database table through declarative schema, and the developer now needs to ensure that the table is removed when the module is disabled.
What must the developer do to achieve this?
- A There is nothing further the developer needs to do. The table will be removed when the module is disabled and bin/magento setup:upgrade is run.
- B There is nothing further the developer needs to do. The table will be removed when the when bin/magento module:uninstall Vendor_ModuleName is run.
- C Add a schema patch that implements Magento\Framework\Setup\Patch\PatchRevertableInterface and drops the table in the revert function.
Community Discussion