Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use the SqlSchemaBootstrapper to prep DBs #346

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading