Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Adding new columns to DB table

    General Discussion
    2
    3
    156
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      Esti last edited by

      Hi everyone,
      I'm trying to add a column in the Bagisto DB, but if I do the command php artisan migrate:fresh --seed it resets the db. So I cannot use this command to add a column or update a table. Moreover if I add the column by hand the things (text, number and other things) I insert in the input don't appear in the DB.
      What's the right procedure?
      Thank you in advance

      1 Reply Last reply Reply Quote 0
      • Rishabh-Webkul
        Rishabh-Webkul last edited by

        Hello @Esti

        Kindly go through the below link for the reference.

        Link: https://devdocs.bagisto.com/2.2/packages/create-migrations.html

        Or if you want to add a new column in the existing on just add the column and run php artisan migrate this will help to create a new column in your table

        Note: Don't make any custom changes in your existing functionalities kindly create a separate package for that otherwise it will create issues later on while you are upgrading your version.

        Thanks & Regards

        E 1 Reply Last reply Reply Quote 0
        • E
          Esti @Rishabh-Webkul last edited by

          @Rishabh-Webkul Thank you for your answer.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post