Releases: mirko-pagliai/cakephp-database-backup
Releases · mirko-pagliai/cakephp-database-backup
2.6.1
- added
DriverTestCase::getMockForDriver()
method; DriverTestCase::allRecords()
method renamed asgetAllRecords()
;- many small code fixes;
- requires
me-tools
package for dev; - removed
ConsoleIntegrationTestTrait
, because it is now sufficient to use the
same trait provided byme-tools
; - updated for
php-tools
1.1.12.
2.6.0
BackupShell
has been replaced with console commands. Every method of the
previous class is now aCommand
class;BackupManager::index()
returns a collection of backups;ConsoleIntegrationTestCase
has been replaced byConsoleIntegrationTestTrait
.
TestCaseTrait
has been removed and its methods moved toTestCase
;- removed
DATABASE_BACKUP
constant; - updated for CakePHP 3.7.
2.5.1
- updated for CakePHP 3.6 and 3.7. Added
Plugin
class; - many small code fixes.
2.5.0
- 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
- fixed bug trying to email a nonexistent backup;
VALID_COMPRESSIONS
andVALID_EXTENSIONS
constants have been replaced by
getValidCompressions()
andgetValidExtensions()
methods provided by the
BackupTrait
class;- replaced
InternalErrorException
withInvalidArgumentException
and
RuntimeException
. This allows compatibility with CakePHP 3.6 branch.
2.3.0
- full support for working under Windows;
- added
Driver::getConfig()
method, removedDriver::$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
oronlyWindows
group.
Thanks to @swiffer for the valuable contribution in supporting Windows.
2.2.0
- added
ConsoleIntegrationTestCase
andTestCaseTrait
classes. Console tests
have been simplified; - updated for CakePHP 3.5.
2.1.4
- when a backup is sent by mail, the mimetype is forced;
- fixed some tests.
2.1.3
- added
createBackup()
andcreateSomeBackups()
to theTestCase
class; BackupManager::_send()
has becomegetEmailInstance()
.
2.1.2
- fixed
composer.json
: the plugin requires at least version 3.4 of CakePHP.