I took over the work of @acaubet (thank you for launching the subject) on the removal of the previous migrations:
And in the discussion it occurred to us that we should have a rule for the removal of the migrations.
So we’d like to propose a rule that state that only the migrations from up to the last 2 LTS will be supported.
It means that we will drop migration from series < 5.0 for the 7.0 release, then for the 8.0 release we will drop migrations for the series < 6.0, and so on.
It’s important to drop useless code as it makes the code easier to read, it might remove bugs also. Migrations can also sometimes generate queries that are long to compute so it might speed up a bit the update process (but it’s not the main point to drop them in my opinion).
What are your thoughts about that rule?