docdev icon indicating copy to clipboard operation
docdev copied to clipboard

Document how to add migration in the core

Open trasher opened this issue 8 years ago • 1 comments

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.

trasher avatar Nov 27 '17 07:11 trasher

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.php to list all files ordered with update_to_*
  • Each file, get the version in the name and compare it with the current version.

edgardmessias avatar Nov 30 '17 18:11 edgardmessias