Notifications
Clear all
Topic starter
An Adobe Commerce architect is creating a module (Vendor_ModuleName) to be sold on the Marketplace. The new module creates a database table using declarative schema and now the developer needs to make sure the table is removed when the module is disabled.
What must the developer do to accomplish this?
- A . Add a schema patch that implements
Mogento\Framework\Setup\Patch\PatchRevertableInterface and drops the table in the revert function.
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. 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.
Suggested Answer: C
Posted : 10/02/2023 6:06 pm