+ Reply to Thread
Results 1 to 2 of 2

How To Add A Column To Existing Database Table In Magento 2

  1. #1
    Registered User
    Join Date
    07-20-2022
    Location
    india
    MS-Off Ver
    9
    Posts
    1

    Post How To Add A Column To Existing Database Table In Magento 2

    Magento 2 allows a developer to create, upgrade, or delete a table in the database. Earlier I talked about how to create and upgrade database in Magento 2. However, there were queries regarding the programmatic method to add a column to existing database table in Magento 2

    You can use the below code for the same. For example, adding an order delivery date column to the order table in the database.

    While development tasks, whenever you need to add a custom column in the existing database table, bookmark this post for reference.
    Last edited by meetanshi; 07-20-2022 at 01:31 AM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2506 Win 11
    Posts
    24,897

    Re: How To Add A Column To Existing Database Table In Magento 2

    Why are you posting a request for help for Magento 2 in an excel forum. Why not post to a Magento Forum where you might have more success.

    Additionally, you refer to code in para 2, but you have not provided any. Think you may want to rethink this request.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 11-14-2021, 04:12 PM
  2. Adding new record to existing database table with a form
    By Mongoloid in forum Access Tables & Databases
    Replies: 2
    Last Post: 11-10-2016, 03:58 PM
  3. [SOLVED] creating a database from existing database by user choice
    By almostgenius in forum Excel General
    Replies: 5
    Last Post: 05-29-2015, 05:29 PM
  4. Replies: 2
    Last Post: 10-22-2014, 11:32 PM
  5. Match data between CSV and database and update column in database table
    By djfscouse in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-05-2012, 05:59 PM
  6. Add to existing query, add table, update sum column
    By randell.graybill in forum Access Programming / VBA / Macros
    Replies: 0
    Last Post: 07-31-2011, 08:47 PM
  7. Replies: 0
    Last Post: 04-28-2010, 11:06 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1