Releases: mirko-pagliai/cakephp-database-backup
Releases · mirko-pagliai/cakephp-database-backup
3.0.4
- the
Utility::__call()method now correctly handles properties with an initial capital letter. This means that
BackupExport()andBackupImport()magically implement theconnection()method, which allows you to set up the
connection even at runtime; - for testing with real drivers, a configuration for Docker is proposed and used (see the
README.mdfile); - by default, the GitHub's actions now use
mariadb(instead ofmysql). Improved the entire configuration; - fixed https://github.com/mirko-pagliai/cakephp-database-backup/security/dependabot/2;
- fixed https://github.com/mirko-pagliai/cakephp-database-backup/security/dependabot/3.
What's Changed
- Switch CI to use MariaDB 10.11 instead of MySQL 8.0 by @mirko-pagliai in #221
- test by @mirko-pagliai in #222
- Refactor CI workflow: simplify matrix configuration and separate real… by @mirko-pagliai in #224
- 3.0.x docker by @mirko-pagliai in #223
- Bump phpunit/phpunit from 12.5.5 to 12.5.8 by @dependabot[bot] in #225
- the
Utility::__call()method now correctly handles properties with … by @mirko-pagliai in #226
Full Changelog: 3.0.3...3.0.4
2.15.4
Important
If there are no particular needs (e.g. bug fixes, vulnerability fixes, etc.), this will be the last release of the 2.15 branch.
- fixed https://github.com/mirko-pagliai/cakephp-database-backup/security/dependabot/2;
- fixed https://github.com/mirko-pagliai/cakephp-database-backup/security/dependabot/3.
Full Changelog: 2.15.3...2.15.4
3.0.3
- ready for CakePHP 5.3;
- PostgreSQL 11.16 is used by default for testing.
What's Changed
- Refactor
BackupExportAndImportTest: adjust parameters and improve e… by @mirko-pagliai in #218 - 3.0.x cakephp5.3 by @mirko-pagliai in #219
Full Changelog: 3.0.2...3.0.3
2.15.3
- slightly improved the
SqliteExecutorTesttest class; - refactor tests to replace deprecated PHPUnit mocks with stubs and improve event-based tests;
- PostgreSQL 11.16 is used by default for testing.
What's Changed
- Improved
SqliteExecutorTestby refining schema collection mock and … by @mirko-pagliai in #220
Full Changelog: 2.15.2...2.15.3
3.0.2
- full compatibility with PHP 8.5. CI actions have been optimized;
- requires at least CakePHP 5.2.10, due to the
PDO::MYSQL_ATTR_USE_BUFFERED_QUERYcostant which has been deprecated. This also ensures full compatibility with PHP 8.5.
What's Changed
- 3.0.x dev by @mirko-pagliai in #211
- 3.0.x develop by @mirko-pagliai in #212
- 3.0.x php8.5 by @mirko-pagliai in #216
Full Changelog: 3.0.1...3.0.2
2.15.2
- the
Pluginclass has been deprecated and will be removed in a future release, useDatabaseBackupPlugininstead; - full support for PHP 8.5. CI actions have been optimized.
What's Changed
- 2.15.x ci by @mirko-pagliai in #213
- 2.15.x ci by @mirko-pagliai in #214
- 2.15.x php8.5 by @mirko-pagliai in #215
Full Changelog: 2.15.1...2.15.2
3.0.1
- Fixed a serious bug in the
BackupExport::compression()method, which did not correctly reset the filename to use. Extended testing.
What's Changed
- 3.0.x dev by @mirko-pagliai in #210
Full Changelog: 3.0.0...3.0.1
3.0.0
BackupExportandBackupImportnow make extensive use of property hooks (instead of methods), which has allowed for significant code optimization.
Thanks to the magic__call()method provided byUtility, they still support the use of already known methods (filename(),compression(),timeout()) to set properties;ExportCommandnow also accepts paths relative to your app's root, in addition to the default target directory, asImportCommandalready did. This allows for proper shell autocompletion;- the
MysqlExecutoruses only and directlymariadbandmariadb-dumpbinaries (and no longer alsomysqlandmysqldump, see here); - it requires at least PHP 8.4 and CakePHP 5.1.
Minor changes:
- 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).
- all methods of the
BackupManagerclass had been deprecated and hence the class was removed; - since there are no aliases defined for binaries anymore (and it would be possible to override the configuration anyway), the
Executor::findBinary()method takes only one argument; - the
BackupExport::rotate()method had been deprecated and was removed; - the
DatabaseBackup.chmodconfiguration had been deprecated and was removed; - the abstract class
AbstractBackupUtilityhas become simplyUtility. It uses property hooks to set and get$Connection,Executor, and$timeOut, rather than the homonymous methods.
ThemakeAbsoluteFilename()method has becomemakeAbsolutePath(); - the abstract class
Commandhas been moved fromDatabaseBackup\ConsoletoDatabaseBackup\Command; - language files are no longer provided (neither
.ponor.pot), as it is not considered particularly useful to always provide localization of the plugin, since it is not aimed at end users of the apps that install it. The__d()function is however maintained, so that it is still possible to proceed with localization for those who wish to do so; - the
@sincetag has been kept for the usual methods that remained unchanged (at least in logic).
Full Changelog: 3.0.0-RC2...3.0.0
2.15.1
What's Changed
- 2.15.x ci windows by @mirko-pagliai in #204
- 2.15.x develop by @mirko-pagliai in #208
Full Changelog: 2.15.0...2.15.1
3.0.0-RC2
What's Changed
- 3.0.x develop by @mirko-pagliai in #198
- Set
db_dsn_mysqlias an environment variable in CI workflow for "re… by @mirko-pagliai in #199 - Refine PHPUnit execution commands in CI workflow to improve consisten… by @mirko-pagliai in #200
- Add conditional
ifclause for database setup steps in CI workflow t… by @mirko-pagliai in #202 - Update Windows workflow to include MySQL 8.0 in test setup by @mirko-pagliai in #205
Full Changelog: 3.0.0-RC1...3.0.0-RC2