Skip to content

Commit 6609e3c

Browse files
committed
Use bigint for github integer IDs
1 parent 6410676 commit 6609e3c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

internal-packages/database/prisma/migrations/20250829124138_add_gh_installation_schema/migration.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ CREATE TYPE "public"."GithubRepositorySelection" AS ENUM ('ALL', 'SELECTED');
22

33
CREATE TABLE "public"."GithubAppInstallation" (
44
"id" TEXT NOT NULL,
5-
"appInstallationId" INTEGER NOT NULL,
6-
"targetId" INTEGER NOT NULL,
5+
"appInstallationId" BIGINT NOT NULL,
6+
"targetId" BIGINT NOT NULL,
77
"targetType" TEXT NOT NULL,
88
"accountHandle" TEXT NOT NULL,
99
"permissions" JSONB,
@@ -20,7 +20,7 @@ CREATE TABLE "public"."GithubAppInstallation" (
2020

2121
CREATE TABLE "public"."GithubRepository" (
2222
"id" TEXT NOT NULL,
23-
"githubId" INTEGER NOT NULL,
23+
"githubId" BIGINT NOT NULL,
2424
"name" TEXT NOT NULL,
2525
"fullName" TEXT NOT NULL,
2626
"htmlUrl" TEXT NOT NULL,

internal-packages/database/prisma/schema.prisma

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2247,8 +2247,8 @@ enum GithubRepositorySelection {
22472247
model GithubAppInstallation {
22482248
id String @id @default(cuid())
22492249
2250-
appInstallationId Int @unique
2251-
targetId Int
2250+
appInstallationId BigInt @unique
2251+
targetId BigInt
22522252
targetType String
22532253
accountHandle String
22542254
permissions Json?
@@ -2271,7 +2271,7 @@ model GithubAppInstallation {
22712271
model GithubRepository {
22722272
id String @id @default(cuid())
22732273
2274-
githubId Int
2274+
githubId BigInt
22752275
name String
22762276
fullName String
22772277
htmlUrl String

0 commit comments

Comments
 (0)