What is InstallSchema-setup class in Magento2

What is InstallSchema-setup class in Magento2:
InstallSchema setup class is helping to create a new table in Magento2. Using install class we can able to declare our table & table columns values. using this script am going to create one table with few columns.

Table Name : jute_ecommerce

Fields (column) name : id , customer_name , email , mobile_number , created_at

installschema

Once script is ready then update your module.xml file with new schema & setup version. And then run upgrade command on terminal.

Ex:  root> php bin/magento setup:upgrade

CORNER OF BLOG:

“Save Rain Water”

Leave a Reply