How did I fix «Unable to apply data patch Magento\CatalogUrlRewrite\Setup\Patch\Data\UpdateUrlKeyForProducts» while upgrading Magewnto to 2.4.0?

Replace the line


with the following one:

['entity_id', 'attribute_id', 'store_id', 'value_id', 'value']

github.com/magento/magento2/issues/29365#issuecomment-670501957