Skip to content

Commit

Permalink
no issue - configuration changes and old names deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
pounard committed May 30, 2024
1 parent c8a8a01 commit 164d0d8
Show file tree
Hide file tree
Showing 18 changed files with 713 additions and 876 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,26 @@

## 1.2.0

* [feature] ⭐️ Add new standlone console/CLI tool running outside of the Symfony context,
this allows this bundle to run outside of a Symfony application on top of any other framework (#153).
* [feature] ⭐️ Add experimental PHAR compiler (#155).
* [deprecation] ⚠️ `excluded_tables` configuration option is deprecated, use `backup_excluded_tables` instead.
* [deprecation] ⚠️ `backupper_binaries` configuration option is deprecated, use `backup_binaries` instead.
* [deprecation] ⚠️ `restorer_binaries` configuration option is deprecated, use `restore_binaries` instead.
* [deprecation] ⚠️ `backupper_options` configuration option is deprecated, use `backup_options` instead.
* [deprecation] ⚠️ `restorer_options` configuration option is deprecated, use `restore_options` instead.
* [deprecation] ⚠️ `MakinaCorpus\DbToolsBundle\DbToolsBundle` class is renamed, please use `MakinaCorpus\DbToolsBundle\Bridge\Symfony\DbToolsBundle` instead.
* [removal] ⚠️ `storage_directory` configuration option is removed, use `storage.root_dir` instead.

## 1.2.0

* [feature] ⭐️ Add Doctrine DBAL 4.0 compatibility (#140).
* [feature] ⭐️ Add Doctrine ORM 3.0 compatibility as a side effect of Doctrine DBAL 4.0 support (#140).
* [feature] ⭐️ Anonymization - Add Doctrine Embeddables support (#105).
* [feature] ⭐️ Anonymization - Add Doctrine entity joined inheritance support (#160)
* [feature] ⭐️ Anonymization - Finalized and improved IBAN/BIC anonymizer (#4)
* [fix] Restored MySQL 5.7 support (#124)
* [deprecation] ⚠️ `storage_directory` configuration option is deprecated, use `storage.root_dir` instead.
* [internal] Remove `doctrine/dbal` dependency from all code except the database session registry (#142).
* [internal] Introduce `DatabaseSessionRegistry` as single entry point for plugging-in database (#142).
* [internal] Use `makinacorpus/query-builder` schema manager for DDL alteration (#140).
Expand Down
10 changes: 5 additions & 5 deletions config/packages/db_tools.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@ db_tools:
# restore_timeout: 2400 # default 1800

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

# Specify here paths to binaries, only if the system can't find them by himself
# platform are 'mysql', 'postgresql', 'sqlite'
#backupper_binaries:
#backup_binaries:
#mariadb: '/usr/bin/mariadb-dump' # default 'mariadb-dump'
#mysql: '/usr/bin/mysqldump' # default 'mysqldump'
#postgresql: '/usr/bin/pg_dump' # default 'pg_dump'
#sqlite: '/usr/bin/sqlite3' # default 'sqlite3'
#restorer_binaries:
#restore_binaries:
#mariadb: '/usr/bin/mariadb' # default 'mariadb'
#mysql: '/usr/bin/mysql' # default 'mysql'
#postgresql: '/usr/bin/pg_restore' # default 'pg_restore'
Expand All @@ -66,10 +66,10 @@ db_tools:
# - MySQL: None
# - PostgreSQL: -j 2 --clean --if-exists --disable-triggers
# - SQLite: None
#backupper_options:
#backup_options:
#default: ''
#another_connection: ''
#restorer_options:
#restore_options:
#default: ''
#another_connection: ''

Expand Down
1 change: 1 addition & 0 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export default defineConfig({
{ text: 'Installation', link: '/getting-started/installation' },
{ text: 'Basics', link: '/getting-started/basics' },
{ text: 'Supported databases', link: '/getting-started/database-vendors' },
{ text: 'CLI tool', link: '/console' },
]
},
{
Expand Down
28 changes: 14 additions & 14 deletions docs/content/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ This will allow the restore command to find your backups.

### Excluded tables

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

Default value is `null`: no table are excluded.
Expand All @@ -105,7 +105,7 @@ db_tools:

#...

excluded_tables:
backup_excluded_tables:
default: ['table1', 'table2']

#...
Expand Down Expand Up @@ -198,16 +198,16 @@ If the `db-tools:check` command returns you some errors:

# Specify here paths to binaries, only if the system can't find them by himself
# platform are 'mysql', 'postgresql', 'sqlite'
backupper_binaries:
mariadb: '/usr/bin/mariadb-dump' # default 'mariadb-dump'
mysql: '/usr/bin/mysqldump' # default 'mysqldump'
postgresql: '/usr/bin/pg_dump' # default 'pg_dump'
sqlite: '/usr/bin/sqlite3' # default 'sqlite3'
restorer_binaries:
mariadb: '/usr/bin/mariadb' # default 'mariadb'
mysql: '/usr/bin/mysql' # default 'mysql'
postgresql: '/usr/bin/pg_restore' # default 'pg_restore'
sqlite: '/usr/bin/sqlite3' # default 'sqlite3'
backup_binaries:
mariadb: '/usr/bin/mariadb-dump'
mysql: '/usr/bin/mysqldump'
postgresql: '/usr/bin/pg_dump'
sqlite: '/usr/bin/sqlite3'
restore_binaries:
mariadb: '/usr/bin/mariadb'
mysql: '/usr/bin/mysql'
postgresql: '/usr/bin/pg_restore'
sqlite: '/usr/bin/sqlite3'

#...
```
Expand Down Expand Up @@ -250,10 +250,10 @@ by configuring your own ones per operation type and DBAL connection:
db_tools:
# ...

backupper_options:
backup_options:
default: '--an-option'
another_connection: '-xyz --another'
restorer_options:
restore_options:
default: '--a-first-one --a-second-one'
another_connection: '-O sample-value'
```
Expand Down
Loading

0 comments on commit 164d0d8

Please sign in to comment.