Skip to content

Migrate Rollback ​

Rollback the migrations for a specific module.

Command Information ​

  • Signature: modularous:migrate:rollback {module}
  • Category: Database

Arguments ​

ArgumentRequiredDescription
moduleYesThe module name to roll back (e.g. Blog)

What It Does ​

Finds all migration files under Modules/{Module}/Database/Migrations/, looks up their batch numbers in the migrations table, and rolls back each batch — in reverse order. Only that module's migrations are affected.

Examples ​

bash
php artisan modularous:migrate:rollback Blog