Laravel 5.5 lesson - 5 Migrations -Part 3 How to add new columns to existing tables

125 Views
45ghesgd1
0
Published on 27 Jul 2018 / In PHP

In this video I have discussed about how to add new columns to existing table using migrations.

Command used in this video:

## to migrate new migration files to database

php artisan migrate

## undo the previous migrations

php artisan migrate:rollback

## create new migration file to add new column to existing table

php artisan make:migration add_phone_number_to_customers_table --table=customers

Github link: https://github.com/rubanraj54/....laravel-lessons/tree

Show more
0 Comments sort Sort by