Skip to content

Commit

Permalink
Improve idempotency of db creation scripts (#1479)
Browse files Browse the repository at this point in the history
* make sure all CREATE operations in the cassandra db creation scripts use IF NOT EXISTS

* make sure all CREATE operations in the atlas db creation scripts use IF NOT EXISTS
  • Loading branch information
FieteO authored Mar 18, 2024
1 parent d439ad9 commit f611445
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
--
-- Add a table to control the number of concurrent repairs

CREATE TABLE running_repairs(
CREATE TABLE IF NOT EXISTS running_repairs(
repair_id uuid,
node text,
reaper_instance_host text,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
--
-- Add a table to store the percent repaired metrics for incremental repair schedules

CREATE TABLE percent_repaired_by_schedule(
CREATE TABLE IF NOT EXISTS percent_repaired_by_schedule(
cluster_name text,
repair_schedule_id uuid,
time_bucket text,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
--
-- Add a table to control the number of concurrent repairs

CREATE TABLE running_repairs(
CREATE TABLE IF NOT EXISTS running_repairs(
repair_id uuid,
node text,
reaper_instance_host text,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
--
-- Add a table to store the percent repaired metrics for incremental repair schedules

CREATE TABLE percent_repaired_by_schedule(
CREATE TABLE IF NOT EXISTS percent_repaired_by_schedule(
cluster_name text,
repair_schedule_id uuid,
time_bucket text,
Expand Down

0 comments on commit f611445

Please sign in to comment.