Data sync execution optimisation
Currently, when we migrate a data sync will be performed ONLY when the tables change. However, there is an option to force the data sync to be executed.
Such as:
<?php
$db = new Hazaar\DBI\Adapter();
$manager = $db->getSchemaManager();
$manager->migrate(null, true);
I would like to optimise this so that instead of executing a data sync when the schema changes and having to force it to execute just in case the data sync files have changed. I would like to create a unique hash code for the current state of the data sync files, and if that is not the same hash from the last data sync, then execute the sync.
With this change, the force parameter can be used to actually force the sync to always run, but we no longer have to use it to get a sync to run when the data sync files have changed but there is no migration. These two decisions are now independant.