Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how to add migration in the core #70

Open
trasher opened this issue Nov 27, 2017 · 1 comment
Open

Document how to add migration in the core #70

trasher opened this issue Nov 27, 2017 · 1 comment

Comments

@trasher
Copy link
Collaborator

trasher commented Nov 27, 2017

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.

@edgardmessias
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants