# SQL Migrations

# Introduction

Migrations are like version control for your database, allowing your team to modify and share the application’s database schema. Migrations are typically paired with schema builder to build your application’s database schema. If you have ever had to tell a teammate to manually add a column to their local database schema, you’ve faced the problem that database migrations solve.

# Generating Migrations

To create a migration, use the make-sql-migration command:

The new migration will be placed in your database/migrations directory. Each migration file name contains a timestamp, which allows expresswebjs to determine the order of the migrations.

# To run your migrations

# To List both completed and pending migrations

# To rollback the last batch of migrations:

# To run the next migration that has not yet been run:

# To run the specified migration that has not yet been run

# To undo the last migration that was run

# To undo the specified migration that was run: