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 MagentoFrameworkSetupPatchPatchVersionInterface;
/**
* 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.