The Pragma Module for handling models changelogs in Pragma Framework.
In composer.json add:
require {"pragma-framework/historic": "dev-master"}
In Model, add use Historisable;
and in Model::___construct $this->set_historised(true);
In Model::delete() add this->set_global_name($this->field)
(DEPRECATED)
In Model::__construct add $this->set_global_name_fields(['field']);
These columns should be handled by within the PRAGMA_HISTORIC_CREATION_HOOK constant (in the config.php)
php public/index.php historic:clean [-d|--days=] [-s|--skip-confirm]
-d --days
Number of days of history to keep
-s --skip-confirm
Skip confirmation (useful with crons)