Upgrade Schema in Magento 2

If you want to add a column, update the column to magento2 existing table then you can use upgrade schema (UpgradeSchema.php).

Okay, let’s check with example.

Im going to use module

MageChallenge_SetupData

Let’s create new file

app/code/MageChallenge_SetupData/Setup/UpgradeSchema.php

Continue reading “Upgrade Schema in Magento 2”