Skip to content

Commit cda7d27

Browse files
authored
Upgrade terraform-provider-postgresql to v1.26.0 (#770)
This PR was generated via `$ upgrade-provider pulumi/pulumi-postgresql --kind=provider --target-bridge-version=latest --target-version=1.26.0 --allow-missing-docs=true`. --- - Upgrading terraform-provider-postgresql from 1.25.0 to 1.26.0. Fixes #769
1 parent b41d658 commit cda7d27

38 files changed

+410
-129
lines changed

docs/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ The following configuration inputs are supported:
217217
In this case, some features might be disabled (e.g.: Refreshing state password from database).
218218
* `sslmode` - (Optional) Set the priority for an SSL connection to the server.
219219
Valid values for `sslmode` are (note: `prefer` is not supported by Go's
220-
[`lib/pq`](https://pkg.go.dev/github.com/lib/pq))):
220+
[`lib/pq`](https://pkg.go.dev/github.com/lib/pq)):
221221
* disable - No SSL
222222
* require - Always SSL (the default, also skip verification)
223223
* verify-ca - Always SSL (verify that the certificate presented by the server was signed by a trusted CA)

patches/0001-fix-import-path.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ Subject: [PATCH] fix import path
55

66

77
diff --git a/go.mod b/go.mod
8-
index eebe8c4..3ca2fa4 100644
8+
index 7f8e1ba..f9e0a8e 100644
99
--- a/go.mod
1010
+++ b/go.mod
1111
@@ -1,4 +1,4 @@
1212
-module github.com/terraform-providers/terraform-provider-postgresql
1313
+module github.com/cyrilgdn/terraform-provider-postgresql
1414

15-
go 1.23
15+
go 1.24.0
1616

1717
diff --git a/main.go b/main.go
1818
index 7125ff2..d9f1406 100644

provider/cmd/pulumi-resource-postgresql/schema.json

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
},
9191
"database": {
9292
"type": "string",
93-
"description": "The name of the database to connect to in order to conenct to (defaults to `postgres`)."
93+
"description": "The name of the database to connect to in order to connect to (defaults to `postgres`)."
9494
},
9595
"databaseUsername": {
9696
"type": "string",
@@ -347,7 +347,7 @@
347347
},
348348
"database": {
349349
"type": "string",
350-
"description": "The name of the database to connect to in order to conenct to (defaults to `postgres`)."
350+
"description": "The name of the database to connect to in order to connect to (defaults to `postgres`)."
351351
},
352352
"databaseUsername": {
353353
"type": "string",
@@ -442,7 +442,7 @@
442442
},
443443
"database": {
444444
"type": "string",
445-
"description": "The name of the database to connect to in order to conenct to (defaults to `postgres`)."
445+
"description": "The name of the database to connect to in order to connect to (defaults to `postgres`)."
446446
},
447447
"databaseUsername": {
448448
"type": "string",
@@ -678,7 +678,7 @@
678678
},
679679
"objectType": {
680680
"type": "string",
681-
"description": "The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, type, schema).\n"
681+
"description": "The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, routine, type, schema).\n"
682682
},
683683
"owner": {
684684
"type": "string",
@@ -719,7 +719,7 @@
719719
},
720720
"objectType": {
721721
"type": "string",
722-
"description": "The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, type, schema).\n",
722+
"description": "The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, routine, type, schema).\n",
723723
"willReplaceOnChanges": true
724724
},
725725
"owner": {
@@ -767,7 +767,7 @@
767767
},
768768
"objectType": {
769769
"type": "string",
770-
"description": "The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, type, schema).\n",
770+
"description": "The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, routine, type, schema).\n",
771771
"willReplaceOnChanges": true
772772
},
773773
"owner": {
@@ -811,7 +811,7 @@
811811
},
812812
"objectType": {
813813
"type": "string",
814-
"description": "The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, type, schema).\n"
814+
"description": "The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, routine, type, schema).\n"
815815
},
816816
"owner": {
817817
"type": "string",
@@ -852,7 +852,7 @@
852852
},
853853
"objectType": {
854854
"type": "string",
855-
"description": "The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, type, schema).\n",
855+
"description": "The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, routine, type, schema).\n",
856856
"willReplaceOnChanges": true
857857
},
858858
"owner": {
@@ -900,7 +900,7 @@
900900
},
901901
"objectType": {
902902
"type": "string",
903-
"description": "The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, type, schema).\n",
903+
"description": "The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, routine, type, schema).\n",
904904
"willReplaceOnChanges": true
905905
},
906906
"owner": {
@@ -1745,6 +1745,10 @@
17451745
"description": "Sets the role's password. A password is only of use\nfor roles having the `login` attribute set to true.\n",
17461746
"secret": true
17471747
},
1748+
"passwordWoVersion": {
1749+
"type": "string",
1750+
"description": "Prevents applies from updating the role password on every\napply unless the value changes. This version string should be updated whenever you want to\nchange the password specified in `password_wo`. Must be used together with `password_wo`.\nConflicts with `password`.\n"
1751+
},
17481752
"replication": {
17491753
"type": "boolean",
17501754
"description": "Defines whether a role is allowed to initiate\nstreaming replication or put the system in and out of backup mode. Default\nvalue is `false`\n"
@@ -1769,7 +1773,7 @@
17691773
},
17701774
"skipReassignOwned": {
17711775
"type": "boolean",
1772-
"description": "When a PostgreSQL ROLE exists in multiple\ndatabases and the ROLE is dropped, a\n[`REASSIGN OWNED`](https://www.postgresql.org/docs/current/static/sql-reassign-owned.html) in\nmust be executed on each of the respective databases before the `DROP ROLE`\ncan be executed to dropped the ROLE from the catalog. This is the first and\nsecond steps taken when removing a ROLE from a database (the second step being\nan implicit\n[`DROP OWNED`](https://www.postgresql.org/docs/current/static/sql-drop-owned.html)).\n"
1776+
"description": "When a PostgreSQL ROLE exists in multiple\ndatabases and the ROLE is dropped, a\n[`REASSIGN OWNED`](https://www.postgresql.org/docs/current/static/sql-reassign-owned.html) in\nmust be executed on each of the respective databases before the `DROP ROLE`\ncan be executed to drop the ROLE from the catalog. This is the first and\nsecond steps taken when removing a ROLE from a database (the second step being\nan implicit\n[`DROP OWNED`](https://www.postgresql.org/docs/current/static/sql-drop-owned.html)).\n"
17731777
},
17741778
"statementTimeout": {
17751779
"type": "integer",
@@ -1837,6 +1841,10 @@
18371841
"description": "Sets the role's password. A password is only of use\nfor roles having the `login` attribute set to true.\n",
18381842
"secret": true
18391843
},
1844+
"passwordWoVersion": {
1845+
"type": "string",
1846+
"description": "Prevents applies from updating the role password on every\napply unless the value changes. This version string should be updated whenever you want to\nchange the password specified in `password_wo`. Must be used together with `password_wo`.\nConflicts with `password`.\n"
1847+
},
18401848
"replication": {
18411849
"type": "boolean",
18421850
"description": "Defines whether a role is allowed to initiate\nstreaming replication or put the system in and out of backup mode. Default\nvalue is `false`\n"
@@ -1861,7 +1869,7 @@
18611869
},
18621870
"skipReassignOwned": {
18631871
"type": "boolean",
1864-
"description": "When a PostgreSQL ROLE exists in multiple\ndatabases and the ROLE is dropped, a\n[`REASSIGN OWNED`](https://www.postgresql.org/docs/current/static/sql-reassign-owned.html) in\nmust be executed on each of the respective databases before the `DROP ROLE`\ncan be executed to dropped the ROLE from the catalog. This is the first and\nsecond steps taken when removing a ROLE from a database (the second step being\nan implicit\n[`DROP OWNED`](https://www.postgresql.org/docs/current/static/sql-drop-owned.html)).\n"
1872+
"description": "When a PostgreSQL ROLE exists in multiple\ndatabases and the ROLE is dropped, a\n[`REASSIGN OWNED`](https://www.postgresql.org/docs/current/static/sql-reassign-owned.html) in\nmust be executed on each of the respective databases before the `DROP ROLE`\ncan be executed to drop the ROLE from the catalog. This is the first and\nsecond steps taken when removing a ROLE from a database (the second step being\nan implicit\n[`DROP OWNED`](https://www.postgresql.org/docs/current/static/sql-drop-owned.html)).\n"
18651873
},
18661874
"statementTimeout": {
18671875
"type": "integer",
@@ -1928,6 +1936,10 @@
19281936
"description": "Sets the role's password. A password is only of use\nfor roles having the `login` attribute set to true.\n",
19291937
"secret": true
19301938
},
1939+
"passwordWoVersion": {
1940+
"type": "string",
1941+
"description": "Prevents applies from updating the role password on every\napply unless the value changes. This version string should be updated whenever you want to\nchange the password specified in `password_wo`. Must be used together with `password_wo`.\nConflicts with `password`.\n"
1942+
},
19311943
"replication": {
19321944
"type": "boolean",
19331945
"description": "Defines whether a role is allowed to initiate\nstreaming replication or put the system in and out of backup mode. Default\nvalue is `false`\n"
@@ -1952,7 +1964,7 @@
19521964
},
19531965
"skipReassignOwned": {
19541966
"type": "boolean",
1955-
"description": "When a PostgreSQL ROLE exists in multiple\ndatabases and the ROLE is dropped, a\n[`REASSIGN OWNED`](https://www.postgresql.org/docs/current/static/sql-reassign-owned.html) in\nmust be executed on each of the respective databases before the `DROP ROLE`\ncan be executed to dropped the ROLE from the catalog. This is the first and\nsecond steps taken when removing a ROLE from a database (the second step being\nan implicit\n[`DROP OWNED`](https://www.postgresql.org/docs/current/static/sql-drop-owned.html)).\n"
1967+
"description": "When a PostgreSQL ROLE exists in multiple\ndatabases and the ROLE is dropped, a\n[`REASSIGN OWNED`](https://www.postgresql.org/docs/current/static/sql-reassign-owned.html) in\nmust be executed on each of the respective databases before the `DROP ROLE`\ncan be executed to drop the ROLE from the catalog. This is the first and\nsecond steps taken when removing a ROLE from a database (the second step being\nan implicit\n[`DROP OWNED`](https://www.postgresql.org/docs/current/static/sql-drop-owned.html)).\n"
19561968
},
19571969
"statementTimeout": {
19581970
"type": "integer",

provider/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/pulumi/pulumi-postgresql/provider/v3
22

3-
go 1.23.11
3+
go 1.24.0
44

55
toolchain go1.24.6
66

@@ -106,7 +106,7 @@ require (
106106
github.com/hashicorp/logutils v1.0.0 // indirect
107107
github.com/hashicorp/terraform-plugin-go v0.28.0 // indirect
108108
github.com/hashicorp/terraform-plugin-log v0.9.0 // indirect
109-
github.com/hashicorp/terraform-plugin-sdk/v2 v2.33.0 // indirect
109+
github.com/hashicorp/terraform-plugin-sdk/v2 v2.37.0 // indirect
110110
github.com/hashicorp/terraform-svchost v0.1.1 // indirect
111111
github.com/huandu/xstrings v1.3.3 // indirect
112112
github.com/iancoleman/strcase v0.3.0 // indirect

sdk/dotnet/Config/Config.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/dotnet/DefaultPrivileg.cs

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/dotnet/DefaultPrivileges.cs

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/dotnet/Provider.cs

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)