Execute setup patch data scripts in Magento
Learn how to execute Magento setup patch data scripts with bin/magento setup upgrade and manage patch_list entries.
Lesson Content
We’ve defined our setup patch data script, but the updates won’t take effect until we tell Magento to run them. We can do this with the bin/magento command. Run:
bin/magento setup:upgradeThis loops through every module’s setup scripts, and if they haven’t been executed, they will be now.
Afterwards, if you inspect the macademy_blog_post database table, you should see the newly added data saved there, which confirms the patch executed properly.
Magento also keeps track of these patch scripts in a database table named patch_list. If you open that table and scroll to the bo...
Join the discussion!
Comments
Want to comment on this lesson?
Enroll in this course to leave comments.