Video Lesson: Execute setup patch data scripts in Magento

Execute setup patch data scripts in Magento

This is premium content

Only available to enrolled or University students.
Join today to unlock all lessons in this course.

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:upgrade

This 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...

Premium content

Enroll to unlock the full content and all course materials.

Maggie

Hey, I'm Maggie! 👋

Ask me anything.

Want to chat with Maggie?

Enroll in this course for AI tutor access.

Comments

Join the discussion!

Comments

Want to comment on this lesson?

Enroll in this course to leave comments.