diff --git a/internal/config/validate.go b/internal/config/validate.go index dd17b2aa3d..fadef4fb3b 100644 --- a/internal/config/validate.go +++ b/internal/config/validate.go @@ -6,14 +6,6 @@ func Validate(c *Config) error { if sql.Database.URI == "" && !sql.Database.Managed { return ErrInvalidDatabase } - if sql.Database.Managed { - if c.Cloud.Project == "" { - return ErrManagedDatabaseNoProject - } - if c.Cloud.AuthToken == "" { - return ErrManagedDatabaseNoAuthToken - } - } } } return nil diff --git a/internal/endtoend/testdata/star_expansion_series/postgresql/pgx/sqlc.yaml b/internal/endtoend/testdata/star_expansion_series/postgresql/pgx/sqlc.yaml index 2f12715923..5dc63e3f91 100644 --- a/internal/endtoend/testdata/star_expansion_series/postgresql/pgx/sqlc.yaml +++ b/internal/endtoend/testdata/star_expansion_series/postgresql/pgx/sqlc.yaml @@ -1,6 +1,4 @@ version: "2" -cloud: - project: "01HAQMMECEYQYKFJN8MP16QC41" sql: - engine: "postgresql" schema: "schema.sql" @@ -10,5 +8,3 @@ sql: package: "querytest" out: "go" sql_package: "pgx/v5" - database: - managed: true