Migrate
Last updated
Last updated
Figure 14: Migrate (Admin side)
For developers of the module, we provide a "Migration" option
Figure 15: View SQL differences(Admin side)
If the module database schema is in synch with the database, then there are no SQL commands here. However, since we just changed the version number of the module, there is no schema yet, therefore the "Show SQL" button shows all the code
Figure 16: Writing the schema (Admin side)
When you make changes to the ModuleBuilder database structure, you should update the schema stored in /sql folder.
Figure 17: Module schema file (Admin side)
This is how the schema file looks like. It will make updates from version to version much easier.