Adding new columns to DB table
-
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 -
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