File tree Expand file tree Collapse file tree 2 files changed +4
-17
lines changed
internal-packages/database/prisma
migrations/20250509180155_runtime_environment_branching Expand file tree Collapse file tree 2 files changed +4
-17
lines changed Original file line number Diff line number Diff line change 22ALTER TABLE " RuntimeEnvironment"
33ADD COLUMN IF NOT EXISTS " archivedAt" TIMESTAMP (3 ),
44ADD COLUMN IF NOT EXISTS " branchName" TEXT ,
5- ADD COLUMN IF NOT EXISTS " git" JSONB;
6-
7- -- Add the parentEnvironmentId column
8- DO $$
9- BEGIN
10- IF NOT EXISTS (
11- SELECT 1
12- FROM information_schema .columns
13- WHERE table_name = ' RuntimeEnvironment'
14- AND column_name = ' parentEnvironmentId'
15- ) THEN
16- ALTER TABLE " RuntimeEnvironment"
17- ADD COLUMN " parentEnvironmentId" TEXT ;
18- END IF;
19- END $$;
5+ ADD COLUMN IF NOT EXISTS " git" JSONB,
6+ ADD COLUMN IF NOT EXISTS " parentEnvironmentId" TEXT ;
207
218-- AddForeignKey
229DO $$
Original file line number Diff line number Diff line change @@ -377,7 +377,7 @@ model RuntimeEnvironment {
377377 slug String
378378 apiKey String @unique
379379
380- /// Deprecated, was for v2
380+ /// @deprecated was for v2
381381 pkApiKey String @unique
382382
383383 type RuntimeEnvironmentType @default (DEVELOPMENT )
@@ -417,7 +417,7 @@ model RuntimeEnvironment {
417417 createdAt DateTime @default (now () )
418418 updatedAt DateTime @updatedAt
419419
420- /// Deprecated (v2)
420+ /// @deprecated (v2)
421421 tunnelId String ?
422422 endpoints Endpoint []
423423 jobVersions JobVersion []
You can’t perform that action at this time.
0 commit comments