Skip to content

Commit

Permalink
Merge pull request #3 from pierreboissinot/fix-restore
Browse files Browse the repository at this point in the history
fix: don't drop local db if db_pull_skip_restore set to 'true'
  • Loading branch information
pierreboissinot authored Nov 7, 2023
2 parents 5cdd200 + 6a1f5f9 commit 25242ec
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [1.2.1](https://github.com/le-phare/ansible-db-pull/compare/v1.2.0...v1.2.1) (2023-11-06)


### Fixes

* **dump:** drop task skipped if `db_pull_skip_restore` set to `true` ([87ce3763ffdb0579fadd083afd9d6f145804101a](https://github.com/le-phare/ansible-db-pull/commit/87ce3763ffdb0579fadd083afd9d6f145804101a))


## [1.2.0](https://github.com/le-phare/ansible-db-pull/compare/v1.1.0...v1.2.0) (2022-11-07)


Expand Down
1 change: 1 addition & 0 deletions tasks/mysql/drop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
--password={{ db_pull_local_database_password }} \
-h {{ db_pull_local_database_host }} \
-e "DROP DATABASE IF EXISTS \`{{ db_pull_local_database_name }}\`;"
when: not db_pull_skip_restore
1 change: 1 addition & 0 deletions tasks/postgres/drop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
-U {{ db_pull_local_database_user }} \
-h {{ db_pull_local_database_host }} \
{{ db_pull_local_database_name }}
when: not db_pull_skip_restore

0 comments on commit 25242ec

Please sign in to comment.