docdev
docdev copied to clipboard
Document how to add migration in the core
When adding a new migration, there are several files to change; and there are various cases to keep in mind (such as using or not the -dev in version).
Since this is quite complex to understand each time we add a new migration script; adding some documentation would be interesting.
Idea:
- Rename all files to
update_to_XYZ(Ex.update_to_920,update_to_922,update_to_085) - Rename all functions to
updatetoXYZ - Change the
update.class.phpto list all files ordered withupdate_to_* - Each file, get the version in the name and compare it with the current version.