Magento Expert Forum - Improve your Magento experience
-
How to Add an Extra Column in Your Existing Magento 2 Table?
While doing Magento 2 programming, sometimes you feel a need to add an extra column to your already existing Magento 2 table. That’s why we have come up with another “How to” blog to help you. In this blog, we will use the UpgradeSchema.php file for adding extra columns in existing Magento 2 tables and this file should be under setup folder of the module.
Learn More: https://www.envisionecommerce.com/ho...agento-2-table/
View more threads in the same category:
-
-
Stage 1: Create a record called 'UpgradeSchema.php' in the setup organizer of module, for example
Stage 2: After sparing records, you have to run php canister/magento setup:upgrade.
Note: If you face any issue, it might be because of the module that you have just introduced.
End:
-
-
Stage 1: Create a document called 'UpgradeSchema.php' in the setup organizer of module.
Stage 2: After sparing documents, you have to run php container/magento setup:upgrade. Presently check your database and you will probably locate another custom table and new section in 'sales_order_payment' table.
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks