Brief intro:
What it can do:
1. Automatically install new module database patches
2. Execute all database patches in order, so that it will work even if the users skipped several versions.
How it works:
1. All your sql patches should be put inside:
admin/includes/module_installation/your_mod/db/
naming from 0.sql to n.sql
2. For each new version, you will need to pack a specific file called current_version.txt placed in admin/includes/module_installation/your_mod/
module_installer will check compare the patch level it found in database against the current patch level, and will execute all new sql patches in order.
This mod contains 2 classes:
sqlPatch class:
https://svn.rubikintegration.com/zen...atch_class.php
--> This class simply uses all the functions found in ZenCart admin/sqlpatch.php, packed into a class with minor changes.
module_installer class:
https://svn.rubikintegration.com/zen..._installer.php
--> The core of this installer
Bookmarks