Skip to content
Open
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Updated default Postgres version for Data Connect to 17.
2 changes: 1 addition & 1 deletion src/gcp/cloudsql/cloudsqladmin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export function instanceConsoleLink(projectId: string, instanceId: string) {
}

export type DataConnectLabel = "ft" | "nt";
export const DEFAULT_DATABASE_VERSION = "POSTGRES_15";
export const DEFAULT_DATABASE_VERSION = "POSTGRES_17";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

While changing the default version to POSTGRES_17 is the goal of this PR, the tests for createInstance in cloudsqladmin.spec.ts don't verify the request body. This means this change is not covered by automated tests. To improve maintainability and prevent potential regressions, I recommend enhancing the tests to assert that the databaseVersion in the API call payload matches this constant.


export async function createInstance(args: {
projectId: string;
Expand Down
Loading