I have created a new table and added a few data using Data patch
setup/patch/data/.
Now I want to add some more data and want to update few data's so can anyone please help me or guide me that how can I do that?
Thanks
databasemagento2.3
I have created a new table and added a few data using Data patch
setup/patch/data/.
Now I want to add some more data and want to update few data's so can anyone please help me or guide me that how can I do that?
Thanks
Best Answer
Inject
Magento\Framework\Setup\ModuleDataSetupInterface
on your data patch class:Add below code add for adding to that table
Full Data patch Class:
Devbera\TestPracticsPlugin\Setup\Patch\Data\TestInfo
.A nd Changes it according to your module and patch class.