adoni migrate 1

adoni migrate

node ace make:migration users

node ace migration:run

# Rollback the latest batch
node ace migration:rollback

# Rollback until the start of the migration
node ace migration:rollback --batch=0

# Rollback until batch 1
node ace migration:rollback --batch=1

Here is what the above code is Doing:
1. We are creating a migration file with the name users.
2. We are running the migration file.
3. We are rolling back the latest batch.
4. We are rolling back until the start of the migration.
5. We are rolling back until batch 1.

Similar Posts