Skip to content

Commit 21529b4

Browse files
committed
Use bigint for github integer IDs
1 parent 6d375af commit 21529b4

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
@@ -2248,8 +2248,8 @@ enum GithubRepositorySelection {
22482248
model GithubAppInstallation {
22492249
id String @id @default(cuid())
22502250
2251-
appInstallationId Int @unique
2252-
targetId Int
2251+
appInstallationId BigInt @unique
2252+
targetId BigInt
22532253
targetType String
22542254
accountHandle String
22552255
permissions Json?
@@ -2272,7 +2272,7 @@ model GithubAppInstallation {
22722272
model GithubRepository {
22732273
id String @id @default(cuid())
22742274
2275-
githubId Int
2275+
githubId BigInt
22762276
name String
22772277
fullName String
22782278
htmlUrl String

0 commit comments

Comments
 (0)