Skip to content

Commit

Permalink
Merge pull request #25 from idealista/develop
Browse files Browse the repository at this point in the history
Fixed #23 avoid internal database being removed.
  • Loading branch information
santi-eidu authored Apr 29, 2022
2 parents 8a7ae03 + 045e877 commit 957aa36
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ This project adheres to [Semantic Versioning](http://semver.org/) and [Keep a ch

## [Unreleased](https://github.com/idealista/clickhouse_role/tree/develop)

## [3.1.1](https://github.com/idealista/clickhouse_role/tree/3.1.1) (2022-04-29)


:hammer_and_wrench: Fixed
#23 Fixed task trying to remove '_temporary_and_external_tables' database @santi-eidu

## [3.1.0](https://github.com/idealista/clickhouse_role/tree/3.1.0) (2022-02-14)

### :heavy_plus_sign: Added
Expand Down
2 changes: 1 addition & 1 deletion tasks/config/databases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
- create

- name: CLICKHOUSE | List databases (SQL-driven)
command: "clickhouse-client -u {{ clickhouse_admin_user }} --password {{ clickhouse_admin_password }} -q \"SELECT name FROM system.databases WHERE LOWER(name) NOT IN ('information_schema', 'default', 'system');\""
command: "clickhouse-client -u {{ clickhouse_admin_user }} --password {{ clickhouse_admin_password }} -q \"SELECT name FROM system.databases WHERE LOWER(name) NOT IN ('_temporary_and_external_tables', 'information_schema', 'default', 'system');\""
changed_when: False
register: clickhouse_existing_sql_databases
no_log: False
Expand Down

0 comments on commit 957aa36

Please sign in to comment.