How to upgrade custom table in Magento 2

Blog Image

Magento 2 UPGRADE TABLE

We will add the next column for our Hello table. To do this we need to create UpgradeSchema.php in app/code/CleverCode/HelloWorld/Setup with the following contents:

Learn more

Follow the fox_

Pursuant to the Personal Data Protection Law (Official Gazette no.922/2016) I hereby agree to the processing of my personal data for marketing purposes by Clever Code Marcin Baranowski, with its registered office at 218, ul. Suraska 1, Bialystok (15-093).

I hereby express my consent to receive commercial information in electronic fashion from Clever Code Marcin Baranowski, with its registered office at 218, ul. Suraska 1, Bialystok (15-093), Suraska 1 St., commercial information in electronic way.

These agreements may be canceled at any time. Personal data will not be shared with any other recipients. You have the right to access and amend this data at any time.