Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Squashable #1

Open
tmus opened this issue Apr 12, 2022 · 1 comment
Open

Squashable #1

tmus opened this issue Apr 12, 2022 · 1 comment

Comments

@tmus
Copy link
Owner

tmus commented Apr 12, 2022

Laravel and others allow migrations to be squashed into a single migration, so that, if you have hundreds of migrations that are well established, you can reduce them down to a single file.

  • What are benefits
  • What problem does this solve?
@tmus
Copy link
Owner Author

tmus commented Apr 12, 2022

Laravel creates a .sql file that is applied before running migrations.

This keeps the history of migrations, but you lose the platform agnostic-ness of writing in a DSL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant