The EuroCMS Updates Module
The update module allows you to manage updates.
- Incremental updates
Download only the changed files. Git like feature: https://github.com/czproject/git-php
example: If you change a typo in a .php,.css,.js file, those files are the only ones that will be downloaded.
If you have a change in the permission.json file, the permission file will be read by ECMS, to updates the permission db table.
If you have a change in the {Files,Users}.sql file, the database will be created again, by executing again the .sql file.
And all changes will be displayed to the user.
Also, the changelog.json will be read, to display what changes are they talking about.
Use https://www.php.net/manual/en/function.xdiff-file-patch.php ?
- Full Updates
Download the complete application update.
db structure
The updates database structure.
| update_id | domain_id | user_id | group_id | component | name | updates | severity | future_install_date | install_date | user_lock | status |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 1 | 1 | 1 | modules | Files | 1 | security | 20-05-2022 00:00:00 | 20-05-2022 00:00:00 | 1 | Installed |
| 2 | 1 | 1 | 1 | modules | Users | 1 | critical | null | null | null | skipped |
| 3 | 1 | 1 | 1 | core | Uploads | 1 | critical | null | null | null | skip |
| 4 | 1 | 1 | 1 | themes | Skeleton | 1 | critical | null | null | null | skip |
| 5 | 1 | 1 | 1 | widgets | NAVmenu | 1 | bug | null | 20-05-2022 00:00:00 | null | Installed |
Permission
| name | description | |
|---|---|---|
| updates_install | The ability to Install updates | |
| updates_skip | The ability to skip updates. | |
| updates_future | The ability to future install updates. | |
| updates_incremental | The ability to update the changed files. | |
| updates_full | The ability to download the complete update package. | |
| updates_changes | The ability to view the to be applied changes to ECMS. |