Skip to content

Releases: mirko-pagliai/cakephp-database-backup

3.0.4

01 Feb 08:24
80ad521

Choose a tag to compare

What's Changed

Full Changelog: 3.0.3...3.0.4

2.15.4

01 Feb 06:55

Choose a tag to compare

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.

Full Changelog: 2.15.3...2.15.4

3.0.3

14 Jan 06:33

Choose a tag to compare

  • ready for CakePHP 5.3;
  • PostgreSQL 11.16 is used by default for testing.

What's Changed

Full Changelog: 3.0.2...3.0.3

2.15.3

14 Jan 06:31
da1db3a

Choose a tag to compare

  • slightly improved the SqliteExecutorTest test 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 SqliteExecutorTest by refining schema collection mock and … by @mirko-pagliai in #220

Full Changelog: 2.15.2...2.15.3

3.0.2

26 Dec 15:01

Choose a tag to compare

  • 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_QUERY costant which has been deprecated. This also ensures full compatibility with PHP 8.5.

What's Changed

Full Changelog: 3.0.1...3.0.2

2.15.2

26 Dec 14:56

Choose a tag to compare

  • the Plugin class has been deprecated and will be removed in a future release, use DatabaseBackupPlugin instead;
  • full support for PHP 8.5. CI actions have been optimized.

What's Changed

Full Changelog: 2.15.1...2.15.2

3.0.1

25 Oct 09:25
9a32bde

Choose a tag to compare

  • Fixed a serious bug in the BackupExport::compression() method, which did not correctly reset the filename to use. Extended testing.

What's Changed

Full Changelog: 3.0.0...3.0.1

3.0.0

23 Sep 09:16

Choose a tag to compare

  • BackupExport and BackupImport now make extensive use of property hooks (instead of methods), which has allowed for significant code optimization.
    Thanks to the magic __call() method provided by Utility, they still support the use of already known methods (filename(), compression(), timeout()) to set properties;
  • ExportCommand now also accepts paths relative to your app's root, in addition to the default target directory, as ImportCommand already did. This allows for proper shell autocompletion;
  • the MysqlExecutor uses only and directly mariadb and mariadb-dump binaries (and no longer also mysql and mysqldump, 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 BackupManager class 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.chmod configuration had been deprecated and was removed;
  • the abstract class AbstractBackupUtility has become simply Utility. It uses property hooks to set and get $Connection, Executor, and $timeOut, rather than the homonymous methods.
    The makeAbsoluteFilename() method has become makeAbsolutePath();
  • the abstract class Command has been moved from DatabaseBackup\Console to DatabaseBackup\Command;
  • language files are no longer provided (neither .po nor .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 @since tag 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

23 Sep 09:06
847aca3

Choose a tag to compare

What's Changed

Full Changelog: 2.15.0...2.15.1

3.0.0-RC2

17 Sep 06:38

Choose a tag to compare

3.0.0-RC2 Pre-release
Pre-release

What's Changed

Full Changelog: 3.0.0-RC1...3.0.0-RC2