All notable changes to this project will be documented in this file.
2.2.0 - 2021-03-29
- Add two converters:
replace
(performs a search and replace)regexReplace
(performs a regular expression search and replace)
- Use stderr to display error messages
- Magento 2 template: anonymize table "email_sms_order_queue"
2.1.1 - 2021-01-25
- New parameter
faker.locale
added to the dump configuration file - The following keywords are now forbidden in the
variables
param:revoke
,rename
,lock
,unlock
,optimize
,repair
- Replace double quotes by single quotes in SQL queries
- Refactor Mysqldump extensions
2.1.0 - 2020-11-10
Major changes:
- Add support for PHP 8
- The following converters were renamed (old names are still available, but deprecated):
randomizeDate
->randomDate
randomizeDateTime
->randomDateTime
addPrefix
->prependText
addSuffix
->appendText
- The
orderBy
parameter was renamed toorder_by
. TheorderBy
syntax is still supported, but deprecated. - New options available for the following converters:
- anonymizeText:
delimiters
,replacement
,min_word_length
- anonymizeEmail:
delimiters
,replacement
,min_word_length
- anonymizeNumber:
replacement
,min_number_length
- anonymizeText:
- New converters:
randomText
,randomEmail
,hash
- Reduce phar file size by ~70%
Minor fixes / code refactoring:
- Remove disabled converters instead of replacing them by dummy converters
- Replace deprecated Doctrine functions
- Fix conditions not working properly in functional tests
- Move the converter name > classname resolution to a new class named "ConverterResolver"
- Move the ArrayHelper class to the "Util" namespace
2.0.3 - 2020-10-05
- Allow unsetting values declared in config templates
- Add missing type hint in table filter extension
1.2.3 - 2020-10-05
- Backport of version 2.0.3
2.0.2 - 2020-07-28
- Add booted state in AppKernel
1.2.2 - 2020-07-28
- Backport of version 2.0.2
2.0.1 - 2020-07-27
- Use
getenv
instead of$_SERVER
to fetch env vars - Set default values for environment variables in functional tests
- Remove the option to skip tests that depend on the database
1.2.1 - 2020-07-27
- Backport of version 2.0.1
2.0.0 - 2020-07-16
- Set minimum PHP version to 7.3
1.2.0 - 2020-07-03
- Allow referencing environment variables in the configuration
1.1.1 - 2020-05-13
- Optimize the data converter hook (huge performance gain)
- Add PHPStan static code analysis
- Raise minimum required version of
ifsnop/mysqldump-php
to^2.9
- Replace
@expectedException
annotation by$this->expectException()
method - Add a unit test of the condition builder
- Fix typos in documentation
1.1.0 - 2020-03-09
- Validate the config file before prompting for a password
- Add parameter
skip_conversion_if
(table row is not converted if the condition evaluates to true) - Remove unused parameter
ignore
from schema.json - Move TableDependencyResolver to the Database namespace
- Add Mysqldump extension logic:
- ColumnTransformer class converted to DataConverterExtension
- TableWheresBuilder class converted to TableFilterExtension
- Initial release