How to create or drop a foreign key and add Index in the table in Magento 2?

Part 4: Last part to this series post of database operation, we are going to cover in this post How to create or drop a foreign key and add index in the table? Create a foreign key and add an […]

How to drop and rename a database table in Magento 2?

Part 2: Continued to the series post of  Database operation in Magento 2. In this post, I am going to cover: how to rename and drop a database table. Rename a table: As in the last post we created a […]

How to create a database table in Magento 2?

Before Magento 2.3, required to write php scripts to create a new db schema or change in db schema. I.e. InstallData, InstallSchema etc. Magento 2.3, introduces Declarative Schema to simplify the Magento installation and upgrade processes. To create a custom […]