Skip to content

Commit

Permalink
chore: Remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
k3yss committed Aug 3, 2024
1 parent 4816897 commit 05debd4
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions modules/postgresql/gcp/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ resource "postgresql_role" "migration" {
replication = true
}

# GRANT CONNECT all the database
resource "postgresql_grant" "grant_connect_db_migration_user" {
for_each = local.upgradable ? toset(local.migration_databases) : []
database = each.value
Expand All @@ -146,7 +145,6 @@ resource "postgresql_grant" "grant_connect_db_migration_user" {
]
}

# GRANT USAGE on 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_usage_public_schema_migration_user" {
for_each = local.upgradable ? toset(local.migration_databases) : []
database = each.value
Expand Down Expand Up @@ -176,7 +174,6 @@ resource "postgresql_grant" "grant_usage_pglogical_schema_migration_user" {
]
}

# GRANT USAGE on SCHEMA pglogical to PUBLIC; on each database to migrate.
resource "postgresql_grant" "grant_usage_pglogical_schema_public_user" {
for_each = local.upgradable ? toset(local.migration_databases) : []
database = each.value
Expand All @@ -192,7 +189,6 @@ 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.migration_databases) : []
database = each.value
Expand All @@ -208,7 +204,6 @@ 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.migration_databases) : []
database = each.value
Expand Down

0 comments on commit 05debd4

Please sign in to comment.