Skip to content

Releases: mirko-pagliai/cakephp-database-backup

2.6.1

18 Jan 16:07
cbbf5db
Compare
Choose a tag to compare
  • added DriverTestCase::getMockForDriver() method;
  • DriverTestCase::allRecords() method renamed as getAllRecords();
  • many small code fixes;
  • requires me-tools package for dev;
  • removed ConsoleIntegrationTestTrait, because it is now sufficient to use the
    same trait provided by me-tools;
  • updated for php-tools 1.1.12.

2.6.0

15 Dec 10:57
Compare
Choose a tag to compare
  • BackupShell has been replaced with console commands. Every method of the
    previous class is now a Command class;
  • BackupManager::index() returns a collection of backups;
  • ConsoleIntegrationTestCase has been replaced by ConsoleIntegrationTestTrait.
    TestCaseTrait has been removed and its methods moved to TestCase;
  • removed DATABASE_BACKUP constant;
  • updated for CakePHP 3.7.

2.5.1

23 Oct 11:55
4c865ee
Compare
Choose a tag to compare
  • updated for CakePHP 3.6 and 3.7. Added Plugin class;
  • many small code fixes.

2.5.0

11 Apr 08:10
2599ff1
Compare
Choose a tag to compare
  • now it uses the mirko-pagliai/php-tools package. This also replaces
    mirko-pagliai/reflection;
  • removed BackupTrait::getClassShortName() method. The
    get_class_short_name() global function will be used instead.

2.4.0

14 Mar 10:08
1a69e01
Compare
Choose a tag to compare
  • fixed bug trying to email a nonexistent backup;
  • VALID_COMPRESSIONS and VALID_EXTENSIONS constants have been replaced by
    getValidCompressions() and getValidExtensions() methods provided by the
    BackupTrait class;
  • replaced InternalErrorException with InvalidArgumentException and
    RuntimeException. This allows compatibility with CakePHP 3.6 branch.

2.3.0

18 Feb 14:17
750cce9
Compare
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
Compare
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
Compare
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
Compare
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
Compare
Choose a tag to compare
  • fixed composer.json: the plugin requires at least version 3.4 of CakePHP.