Skip to content

Commit 06aa04f

Browse files
committed
no issue - configuration changes and old names deprecation
1 parent f31402f commit 06aa04f

29 files changed

+762
-338
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66
* [experimental] ⭐️ Add `bin/compile` CLI command for building a PHAR file (#154).
77
* [bc] Password anonymizer `symfony/password-hasher` dependency is now optional and must be manually installed (#155).
88
* [fix] Property must not be accessed before initialization error when using `--list` option (#183, @iNem0o).
9+
* [deprecation] ⚠️ `excluded_tables` configuration option is deprecated, use `backup_excluded_tables` instead.
10+
* [deprecation] ⚠️ `backupper_binaries` configuration option is deprecated, use `backup_binaries` instead.
11+
* [deprecation] ⚠️ `restorer_binaries` configuration option is deprecated, use `restore_binaries` instead.
12+
* [deprecation] ⚠️ `backupper_options` configuration option is deprecated, use `backup_options` instead.
13+
* [deprecation] ⚠️ `restorer_options` configuration option is deprecated, use `restore_options` instead.
14+
* [deprecation] ⚠️ `MakinaCorpus\DbToolsBundle\DbToolsBundle` class is renamed, please use `MakinaCorpus\DbToolsBundle\Bridge\Symfony\DbToolsBundle` instead.
15+
* [removal] ⚠️ `storage_directory` configuration option is removed, use `storage.root_dir` instead.
916
* [internal] All Doctrine related dependencies are now optional (#155).
1017
* [internal] Move Symfony related code into the `src/Bridge/Symfony` folder and associated namespace (#155).
1118
* [internal] More efficient anonymizer pack lookup (#165).
@@ -22,6 +29,7 @@
2229
* [feature] ⭐️ Anonymization - Add Doctrine entity joined inheritance support (#160)
2330
* [feature] ⭐️ Anonymization - Finalized and improved IBAN/BIC anonymizer (#4)
2431
* [fix] Restored MySQL 5.7 support (#124)
32+
* [deprecation] ⚠️ `storage_directory` configuration option is deprecated, use `storage.root_dir` instead.
2533
* [internal] Remove `doctrine/dbal` dependency from all code except the database session registry (#142).
2634
* [internal] Introduce `DatabaseSessionRegistry` as single entry point for plugging-in database (#142).
2735
* [internal] Use `makinacorpus/query-builder` schema manager for DDL alteration (#140).

config/db_tools.standalone.sample.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,17 @@ storage:
7070
# restore_timeout: 2400 # default 1800
7171

7272
# List here tables (per connection) you don't want in your backups
73-
#excluded_tables:
73+
#backup_excluded_tables:
7474
#default: ['table1', 'table2']
7575

7676
# Specify here paths to binaries, only if the system can't find them by himself
7777
# platform are 'mysql', 'postgresql', 'sqlite'
78-
#backupper_binaries:
78+
#backup_binaries:
7979
#mariadb: '/usr/bin/mariadb-dump' # default 'mariadb-dump'
8080
#mysql: '/usr/bin/mysqldump' # default 'mysqldump'
8181
#postgresql: '/usr/bin/pg_dump' # default 'pg_dump'
8282
#sqlite: '/usr/bin/sqlite3' # default 'sqlite3'
83-
#restorer_binaries:
83+
#restore_binaries:
8484
#mariadb: '/usr/bin/mariadb' # default 'mariadb'
8585
#mysql: '/usr/bin/mysql' # default 'mysql'
8686
#postgresql: '/usr/bin/pg_restore' # default 'pg_restore'
@@ -101,10 +101,10 @@ storage:
101101
# - MySQL: None
102102
# - PostgreSQL: -j 2 --clean --if-exists --disable-triggers
103103
# - SQLite: None
104-
#backupper_options:
104+
#backup_options:
105105
#default: ''
106106
#another_connection: ''
107-
#restorer_options:
107+
#restore_options:
108108
#default: ''
109109
#another_connection: ''
110110

config/packages/db_tools.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,17 @@ db_tools:
3535
# restore_timeout: 2400 # default 1800
3636

3737
# List here tables (per connection) you don't want in your backups
38-
#excluded_tables:
38+
#backup_excluded_tables:
3939
#default: ['table1', 'table2']
4040

4141
# Specify here paths to binaries, only if the system can't find them by himself
4242
# platform are 'mysql', 'postgresql', 'sqlite'
43-
#backupper_binaries:
43+
#backup_binaries:
4444
#mariadb: '/usr/bin/mariadb-dump' # default 'mariadb-dump'
4545
#mysql: '/usr/bin/mysqldump' # default 'mysqldump'
4646
#postgresql: '/usr/bin/pg_dump' # default 'pg_dump'
4747
#sqlite: '/usr/bin/sqlite3' # default 'sqlite3'
48-
#restorer_binaries:
48+
#restore_binaries:
4949
#mariadb: '/usr/bin/mariadb' # default 'mariadb'
5050
#mysql: '/usr/bin/mysql' # default 'mysql'
5151
#postgresql: '/usr/bin/pg_restore' # default 'pg_restore'
@@ -66,10 +66,10 @@ db_tools:
6666
# - MySQL: None
6767
# - PostgreSQL: -j 2 --clean --if-exists --disable-triggers
6868
# - SQLite: None
69-
#backupper_options:
69+
#backup_options:
7070
#default: ''
7171
#another_connection: ''
72-
#restorer_options:
72+
#restore_options:
7373
#default: ''
7474
#another_connection: ''
7575

docs/.vitepress/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export default defineConfig({
6161
{ text: 'Installation', link: '/getting-started/installation' },
6262
{ text: 'Basics', link: '/getting-started/basics' },
6363
{ text: 'Supported databases', link: '/getting-started/database-vendors' },
64+
{ text: 'CLI tool', link: '/console' },
6465
]
6566
},
6667
{

docs/content/configuration.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ This will allow the restore command to find your backups.
9191

9292
### Excluded tables
9393

94-
The `excluded_tables` parameter let you configure tables to exclude from backups. You will need to give a
94+
The `backup_excluded_tables` parameter let you configure tables to exclude from backups. You will need to give a
9595
configuration per doctrine connection.
9696

9797
Default value is `null`: no table are excluded.
@@ -105,7 +105,7 @@ db_tools:
105105
106106
#...
107107
108-
excluded_tables:
108+
backup_excluded_tables:
109109
default: ['table1', 'table2']
110110
111111
#...
@@ -198,16 +198,16 @@ If the `db-tools:check` command returns you some errors:
198198
199199
# Specify here paths to binaries, only if the system can't find them by himself
200200
# platform are 'mysql', 'postgresql', 'sqlite'
201-
backupper_binaries:
202-
mariadb: '/usr/bin/mariadb-dump' # default 'mariadb-dump'
203-
mysql: '/usr/bin/mysqldump' # default 'mysqldump'
204-
postgresql: '/usr/bin/pg_dump' # default 'pg_dump'
205-
sqlite: '/usr/bin/sqlite3' # default 'sqlite3'
206-
restorer_binaries:
207-
mariadb: '/usr/bin/mariadb' # default 'mariadb'
208-
mysql: '/usr/bin/mysql' # default 'mysql'
209-
postgresql: '/usr/bin/pg_restore' # default 'pg_restore'
210-
sqlite: '/usr/bin/sqlite3' # default 'sqlite3'
201+
backup_binaries:
202+
mariadb: '/usr/bin/mariadb-dump'
203+
mysql: '/usr/bin/mysqldump'
204+
postgresql: '/usr/bin/pg_dump'
205+
sqlite: '/usr/bin/sqlite3'
206+
restore_binaries:
207+
mariadb: '/usr/bin/mariadb'
208+
mysql: '/usr/bin/mysql'
209+
postgresql: '/usr/bin/pg_restore'
210+
sqlite: '/usr/bin/sqlite3'
211211
212212
#...
213213
```
@@ -250,10 +250,10 @@ by configuring your own ones per operation type and DBAL connection:
250250
db_tools:
251251
# ...
252252
253-
backupper_options:
253+
backup_options:
254254
default: '--an-option'
255255
another_connection: '-xyz --another'
256-
restorer_options:
256+
restore_options:
257257
default: '--a-first-one --a-second-one'
258258
another_connection: '-O sample-value'
259259
```

0 commit comments

Comments
 (0)