Exercise: Write another setup data patch script in Magento
Learn to write a second Magento setup data patch script to populate and manage blog post database entries.
Lesson Content
Using what you just learned in the last lesson, write a second setup patch data script to populate your blog post database table with more data so you have extra blog posts to work with.
Keep the existing patch script in place and add a subsequent one. Experiment with calling the repository with different data, and even try deleting some of the existing blog posts in the database.
If you need to re-execute the same patch script, remove the related entry from the patch_list database table. If Magento doesnβt know it previously executed the script, it will attempt to execute it again, wh...
Join the discussion!
Comments
Want to comment on this lesson?
Enroll in this course to leave comments.