Skip to content

Feature Request: Add schema dump command similar to Laravel schema:dump --prune #2

Description

@sagar290

Propose a feature similar to Laravel’s:

php artisan schema:dump --prune

Problem

As projects grow, the number of migration files increases significantly. This causes:

  • slower setup for new environments
  • longer migration execution times
  • large migration history that is no longer necessary once schema stabilizes

Currently, Migo runs all migrations sequentially from the beginning.

Proposed Solution

Add a command that allows dumping the current database schema into a single SQL file and optionally pruning old migrations.

Example idea:

migo schema:dump

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions