Skip to content

Commit 81bfc46

Browse files
committed
updated
1 parent 91c8622 commit 81bfc46

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
* `BackupExport` and `BackupImport` now make extensive use of property hooks (instead of methods), which has allowed for
55
significant code optimization. Thanks to the magic `__call()` method provided by `Utility`, they still support the use
66
of already known methods (`filename()`, `compression()`, `timeout()`, etc.) to set properties;
7-
* the `DatabaseBackup.target` configuration value no longer exists. Relative paths will be understood as relative to the `ROOT`;
7+
* the `DatabaseBackup.chmod` and `DatabaseBackup.target` configuration values no longer exist ([see here](docs/Migration%20from%20version%202.md#other-configuration-values));
88
* `BackupExport` no longer takes care of rotating (`rotate()` method) files and (for now) setting chmods of files after export,
99
because these functions are not essential and (like others already removed) can be implemented by the user;
10-
* the `MysqlExecutor` uses only and directly `mariadb` and `mariadb-dump` binaries (and no longer also `mysql` and `mysqldump`);
10+
* the `MysqlExecutor` uses only and directly `mariadb` and `mariadb-dump` binaries (and no longer also `mysql` and `mysqldump`, [see here](docs/Migration%20from%20version%202.md#from-mysqlmysql-dump-to-mariadbmariadb-dump));
1111
* since there are no aliases defined for binaries anymore (and it would be possible to override the configuration anyway), the
1212
`Executor::findBinary()` method takes only one argument;
1313
* it requires at least PHP 8.4 and CakePHP 5.1.
1414

1515
#### Minor changes:
16-
* thanks to `Mockery` and overloading, tests no longer need to write real files to the filesystem;
16+
* thanks to the Mockery's overloading and the (external) component Process that actually takes care of executing the commands to export/import the databases, normally the tests do not really use the database drivers and do not actually write or read files on the filesystem (i.e. everything is simulated, [see here](README.md#testing)).
1717
* the abstract class `AbstractBackupUtility` has become simply `Utility`. It uses property hooks to set and get `$Connection`,
1818
`Executor`, and `$timeOut`, rather than the homonymous methods. The `makeAbsoluteFilename()` method has become
1919
`makeAbsolutePath()`;

docs/Migration from version 2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ If, however, for some particular need, you have overridden them, then you need t
6161

6262
### Other configuration values
6363

64-
First of all, the `DatabaseBackup.chmod` and `DatabaseBackup.target` configuration values are no more.
64+
First of all, the `DatabaseBackup.chmod` and `DatabaseBackup.target` configuration values no longer exist.
6565

6666
For chmods of exported backups, you can implement this yourself in your code, if you need to.
6767

0 commit comments

Comments
 (0)