Skip to content

Releases: mirko-pagliai/cakephp-database-backup

2.3.0

18 Feb 14:17
750cce9

Choose a tag to compare

  • full support for working under Windows;
  • added Driver::getConfig() method, removed Driver::$config property. This
    allows you to get the configuration values safely;
  • fixed a bug for export and import executables with Postgres databases;
  • before importing a sqlite backup, each table is dropped, rather than deleting
    the database file;
  • added isWin() global function;
  • tests can have onlyUnix or onlyWindows group.

Thanks to @swiffer for the valuable contribution in supporting Windows.

2.2.0

02 Sep 09:06

Choose a tag to compare

  • added ConsoleIntegrationTestCase and TestCaseTrait classes. Console tests
    have been simplified;
  • updated for CakePHP 3.5.

2.1.4

02 Sep 08:49

Choose a tag to compare

  • when a backup is sent by mail, the mimetype is forced;
  • fixed some tests.

2.1.3

11 Aug 10:19

Choose a tag to compare

  • added createBackup() and createSomeBackups() to the TestCase class;
  • BackupManager::_send() has become getEmailInstance().

2.1.2

24 Jul 12:36

Choose a tag to compare

  • fixed composer.json: the plugin requires at least version 3.4 of CakePHP.

2.1.1

18 Jul 16:09

Choose a tag to compare

  • afterExport(), afterImport(), beforeExport() and beforeImport methods
    are now real events;
  • now you can choose if you want to redirects stderr to /dev/null. This
    suppresses the output of executed commands.

2.1.0

13 Jul 11:45

Choose a tag to compare

  • added support for Postgres databases;
  • all export() and import() methods have been moved to the Driver class;
  • added afterExport(), afterImport(), beforeExport() and beforeImport
    methods to the Driver class;
  • getCompression() and getExtension() moved from Driver to BackupTrait
    class, because these methods are not strictly related to the database engine
    you are using;
  • removed getValidExtensions() and getValidCompressions() methods from
    Driver class, because extensions and compressions are the same for any
    database engine;
  • removed getDefaultExtension() method from Driver class, because the
    default extension is the same for any database engine.

2.0.0

23 Jun 20:48

Choose a tag to compare

  • the plugin has been renamed as DatabaseBackup (cakephp-database-backup);
  • the code has been completely rewritten to work with drivers, so it can also
    work with other database engines;
  • added support for Sqlite database;
  • checks the return status code when it runs mysql and mysqldump from the
    command line.