Skip to content

Commit

Permalink
typo: local.database instead of local.migration_database
Browse files Browse the repository at this point in the history
  • Loading branch information
k3yss committed Aug 3, 2024
1 parent 4b3fcb6 commit 4816897
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/postgresql/gcp/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ resource "postgresql_grant" "grant_usage_pglogical_schema_public_user" {

# GRANT SELECT on ALL TABLES in SCHEMA pglogical to USER on all databases to get replication information from source databases.
resource "postgresql_grant" "grant_select_table_pglogical_schema_migration_user" {
for_each = local.upgradable ? toset(local.databases) : []
for_each = local.upgradable ? toset(local.migration_databases) : []
database = each.value
role = postgresql_role.migration[0].name
schema = "pglogical"
Expand All @@ -210,7 +210,7 @@ resource "postgresql_grant" "grant_select_table_pglogical_schema_migration_user"

# GRANT SELECT on ALL TABLES in SCHEMA SCHEMA to USER on all schemas (aside from the information schema and schemas starting with "pg_") on each database to migrate.
resource "postgresql_grant" "grant_select_table_public_schema_migration_user" {
for_each = local.upgradable ? toset(local.databases) : []
for_each = local.upgradable ? toset(local.migration_databases) : []
database = each.value
role = postgresql_role.migration[0].name
schema = "public"
Expand Down

0 comments on commit 4816897

Please sign in to comment.