In this tutorial, we will learn about how to add new column to existing table using db schema in Magento 2. In previous version, we used UpgradeSchema.php file for add new column into existing table. But, now in Magento 2.3, we can perform an action using the db_schema.xml file. Let’s start steps about how to add new column to existing table…
Tag: declarative schema
Magento 2.3 : Rename a Table using Declarative Schema
In this tutorial, we will learn about how to rename a database table using declarative schema in Magento 2.3. In Magento 2.3, Table renaming is now supported. You can create new table using db_schema.xml file. After, if you need to rename a database table then, you can rename it by db_schema.xml file. Let’s start steps about how to rename a…
Magento 2.3 : Drop Table using Declarative Schema
In this tutorial, we will learn about how to drop the table using declarative schema in Magento 2.3. In Magento 2.3, There are introduce new features about declarative schema which major role is going to simplify installing and updating the schema process. So, here we will learn about how to drop the table using declarative schema. In the future, whenever…
Magento 2.3 : Create a New Table using Declarative Schema
In Magento 2.3, There are introduce new features about declarative schema which major role is going to simplify installing and updating the schema process. So, here we will learn about how to create a new table using declarative schema. In the previous version, we need to create InstallData or InstallSchema script to create a new table or add new data…