Skip to content

Conversation

bhavyamodi29
Copy link

Preconditions (*)

Tested in this versions:

  1. Module's version: 103.4.72
  2. Magento's version: 2.4.6-p6

Issue Description (*)

As per standard rule of magento, whenever we uninstall the module, all the database tables and data patches associated with that module should be removed. However, in this module after uninstalling the module, I can see that only database tables are removed, the data patches associated with the module are not removed.

Steps to reproduce (*)

  1. Install the Ebizmarts_MailChimp module.
  2. Disable the module and run the setup:upgrade command.
  3. Enable the module and then run the uninstall command.
  4. Check the patch_list table to verify that data patches are not removed (refer to screenshot-1).

Screenshot-1

image

Expected result (*)

The data patches should be removed along with the database tables from the database during module uninstallation.

Actual result (*)

The data patches were not removed along with the database tables from the database during module uninstallation.

Additional Information (*)

This behavior occurs due to the failure of data patches to revert correctly when the module is uninstalled. It happens because the revert method has not been implemented in the following files. Once you add the revert method then the issue will be resolved.

File Names (*)

1.mailchimp/mc-magento2/Setup/Patch/Data/Migrate24.php
2.mailchimp/mc-magento2/Setup/Patch/Data/Migrate32.php
3.mailchimp/mc-magento2/Setup/Patch/Data/Migrate35.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant