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_iddomain_iduser_idgroup_idcomponentnameupdatesseverityfuture_install_dateinstall_dateuser_lockstatus
1111modulesFiles1security20-05-2022 00:00:0020-05-2022 00:00:001Installed
2111modulesUsers1criticalnullnullnullskipped
3111coreUploads1criticalnullnullnullskip
4111themesSkeleton1criticalnullnullnullskip
5111widgetsNAVmenu1bugnull20-05-2022 00:00:00nullInstalled

Permission

namedescription
updates_installThe ability to Install updates
updates_skipThe ability to skip updates.
updates_futureThe ability to future install updates.
updates_incrementalThe ability to update the changed files.
updates_fullThe ability to download the complete update package.
updates_changesThe ability to view the to be applied changes to ECMS.