Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Re: Removal of migration scripts on each new version

by
Opener B.V., Stefan Rijnhart
- 06/05/2025 14:22:46
On 06-05-2025 14:17, Juan José Scarafía wrote:

> I agree, keeping the migration scripts probably doesn't mean you can 

> just skip versions and expect them to run flawlessly, but in a lot of 

> cases, it does seem to work out just fine.

Well, they should run flawlessly otherwise it will break everyone's 
migration. The scripts that we keep should be idempotent and not be 
invalidated by subsequent data model changes. So special care should be 
taken when reviewing PRs that contain older scripts.


> On the other hand, I'm not really seeing any downside to leaving them 

> there. If you *are* updating version by version, those older scripts 

> just won't run anyway, right?

That is correct, if you migrate from 17 to 18, any 16.0.x.x.x migration 
script will not be triggered.



-- 
Opener B.V. - Business solutions driven by open source collaboration

Stefan Rijnhart - Consultant/developer

mail: stefan@opener.amsterdam
tel: +31 (0) 6 1447 8606
web: https://opener.amsterdam

Reference