Setup Data Patch script is executed successfully after running setup:upgrade command. Now i want to execute same script with public static function getVersion() function.
Module version is :
<?xml version="1.0"?>
setup_version="1.0.0" module_version="1.0.0"
Script function is :
use Magento\Framework\Setup\Patch\PatchVersionInterface;
/**
* AddCategoryAttributes Class for adding category attributes.
*
*/
class AddCategoryAttributes implements DataPatchInterface, PatchRevertableInterface, PatchVersionInterface
public static function getVersion()
{
return '2.0.0';
}
After running setup:upgrade command attribute value isn't updated.
2.0.0
tosetup_version
1.0.0
?setup_version
andmodule_version
at all. What is the reason to use versioned patches? Is your patch already exists in tablepatch_list
?patch_list
first. Other way it will not be processed.