Skip to content

Commit

Permalink
feat: use the SqlSchemaBootstrapper to prep DBs (#346)
Browse files Browse the repository at this point in the history
feat: use the SqlSchemaBootstrapper to prepare the databases
  • Loading branch information
paullatzelsperger authored Sep 23, 2024
1 parent 1edb42c commit 84d5107
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 398 deletions.
301 changes: 0 additions & 301 deletions deployment/assets/postgres/edc_schema.sql

This file was deleted.

75 changes: 0 additions & 75 deletions deployment/assets/postgres/ih_schema.sql

This file was deleted.

8 changes: 2 additions & 6 deletions deployment/consumer.tf
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,11 @@ resource "kubernetes_config_map" "postgres-initdb-config-consumer" {
}
data = {
"consumer-initdb-config.sql" = <<-EOT
CREATE USER consumer WITH ENCRYPTED PASSWORD 'consumer';
CREATE USER consumer WITH ENCRYPTED PASSWORD 'consumer' SUPERUSER;
CREATE DATABASE consumer;
\c consumer
\c consumer consumer
${file("./assets/postgres/edc_schema.sql")}
${file("./assets/postgres/ih_schema.sql")}
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO consumer;
EOT
}
}
Loading

0 comments on commit 84d5107

Please sign in to comment.