diff --git a/src/dataconnect/schemaMigration.ts b/src/dataconnect/schemaMigration.ts index 1741a35bd5a..c6c05fb76fe 100644 --- a/src/dataconnect/schemaMigration.ts +++ b/src/dataconnect/schemaMigration.ts @@ -543,6 +543,7 @@ async function ensureServiceIsConnectedToCloudSql( { postgresql: { database: databaseId, + schemaValidation: "NONE", cloudSql: { instance: instanceId, }, @@ -566,7 +567,8 @@ async function ensureServiceIsConnectedToCloudSql( `Switching connected Postgres database from ${postgresql?.database} to ${databaseId}`, ); } - if (!postgresql || postgresql.schemaValidation === "STRICT") { + if (!postgresql || postgresql.schemaValidation !== "NONE") { + // Skip provisioning connectvity if it is already connected. return; } postgresql.schemaValidation = "STRICT";