Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

Migration in Laravel.

Migrations are like version control for our database. Means we don’t have to worry about versions of the database and laravel because it interacts with the database by command, we don’t need to interact with the database manually. By using migration, we create/define tables, structures, seeds value in the database. We also don’t need to add columns manually in the database.

How to create a migration.

To create migration we call a command, see below:-

After hitting Enter migration creates. See below how it looks:-

How to add columns in Database by migration.

To add a column, we open our migration and add column in up function and use migrate command to add in database. See below how:-

After adding column we call migrate command to add in the database.

Column migrated in database. See below:-

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.