You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given a project that grows and evolves forever, migrations files become prolific in project repos and new/test setups take longer and longer to migrate/fixturize.
Is there a way to roll up all migrations to a certain point and execute them as a minimal number of steps with sqitch? Similar to "flattening" in django or "truncating history" in alembic/sqlalchemy?
Since migrations are just raw SQL here, I'm somewhat anticipating that there's not a great solution to this other than migrating to a specific point, dumping the schema and making that the new initial state and what not all manually, but I figured I'd ask here anyway.
The text was updated successfully, but these errors were encountered:
There is not a feature to automatically flatten things in Sqitch, but you can more or less do the equivalent by following the instructions to start with an existing database.
Given a project that grows and evolves forever, migrations files become prolific in project repos and new/test setups take longer and longer to migrate/fixturize.
Is there a way to roll up all migrations to a certain point and execute them as a minimal number of steps with sqitch? Similar to "flattening" in django or "truncating history" in alembic/sqlalchemy?
Since migrations are just raw SQL here, I'm somewhat anticipating that there's not a great solution to this other than migrating to a specific point, dumping the schema and making that the new initial state and what not all manually, but I figured I'd ask here anyway.
The text was updated successfully, but these errors were encountered: