diff --git a/.env b/.env index 7f4f24563..0cd3dc0d4 100644 --- a/.env +++ b/.env @@ -15,7 +15,7 @@ CQ_POSTGRES_SOURCE=3.0.7 CQ_AWS=27.5.0 # See https://hub.cloudquery.io/plugins/source/cloudquery/github/versions -CQ_GITHUB=10.0.1 +CQ_GITHUB=11.11.1 # See https://hub.cloudquery.io/plugins/source/cloudquery/fastly/versions CQ_FASTLY=3.0.7 diff --git a/packages/cdk/lib/__snapshots__/service-catalogue.test.ts.snap b/packages/cdk/lib/__snapshots__/service-catalogue.test.ts.snap index 7a5b9d25d..0cdf320cb 100644 --- a/packages/cdk/lib/__snapshots__/service-catalogue.test.ts.snap +++ b/packages/cdk/lib/__snapshots__/service-catalogue.test.ts.snap @@ -13582,7 +13582,7 @@ spec: spec: name: github path: cloudquery/github - version: v10.0.1 + version: v11.11.1 tables: - github_issues destinations: @@ -14707,7 +14707,7 @@ spec: spec: name: github path: cloudquery/github - version: v10.0.1 + version: v11.11.1 tables: - github_repositories - github_repository_branches @@ -15422,7 +15422,7 @@ spec: spec: name: github path: cloudquery/github - version: v10.0.1 + version: v11.11.1 tables: - github_organizations - github_organization_members diff --git a/packages/cdk/lib/cloudquery/config.test.ts b/packages/cdk/lib/cloudquery/config.test.ts index 03d7adcd6..58052197d 100644 --- a/packages/cdk/lib/cloudquery/config.test.ts +++ b/packages/cdk/lib/cloudquery/config.test.ts @@ -156,7 +156,7 @@ spec: spec: name: github path: cloudquery/github - version: v10.0.1 + version: v11.11.1 tables: - github_repositories destinations: diff --git a/packages/common/prisma/migrations/20241128170250_github_repository_custom_properties/migration.sql b/packages/common/prisma/migrations/20241128170250_github_repository_custom_properties/migration.sql new file mode 100644 index 000000000..637eebf11 --- /dev/null +++ b/packages/common/prisma/migrations/20241128170250_github_repository_custom_properties/migration.sql @@ -0,0 +1,14 @@ +-- CreateTable +CREATE TABLE "github_repository_custom_properties" ( + "_cq_sync_time" TIMESTAMP(6), + "_cq_source_name" TEXT, + "_cq_id" UUID NOT NULL, + "_cq_parent_id" UUID, + "org" TEXT NOT NULL, + "property_name" TEXT NOT NULL, + "repository_id" BIGINT NOT NULL, + "value" TEXT +); + +-- CreateIndex +CREATE UNIQUE INDEX "github_repository_custom_properties__cq_id_key" ON "github_repository_custom_properties"("_cq_id"); diff --git a/packages/common/prisma/schema.prisma b/packages/common/prisma/schema.prisma index a077525b9..7f4d37402 100644 --- a/packages/common/prisma/schema.prisma +++ b/packages/common/prisma/schema.prisma @@ -380,6 +380,19 @@ model github_repository_branches { @@id([org, repository_id, name], map: "github_repository_branches_cqpk") } +model github_repository_custom_properties { + cq_sync_time DateTime? @map("_cq_sync_time") @db.Timestamp(6) + cq_source_name String? @map("_cq_source_name") + cq_id String @unique @map("_cq_id") @db.Uuid + cq_parent_id String? @map("_cq_parent_id") @db.Uuid + org String + property_name String + repository_id BigInt + value String? + + @@ignore +} + model github_team_repositories { cq_sync_time DateTime? @map("_cq_sync_time") @db.Timestamp(6) cq_source_name String? @map("_cq_source_name") diff --git a/packages/dev-environment/docker-compose.yaml b/packages/dev-environment/docker-compose.yaml index 8193d2dd4..634e3481b 100644 --- a/packages/dev-environment/docker-compose.yaml +++ b/packages/dev-environment/docker-compose.yaml @@ -26,6 +26,7 @@ services: - github_teams - github_repositories - github_repository_branches + - github_repository_custom_properties - github_workflows - github_languages - aws_ec2_instances