Skip to content

Commit 4e8d20f

Browse files
committed
Remove prisma migration drifts
1 parent eb201ef commit 4e8d20f

File tree

1 file changed

+0
-53
lines changed
  • internal-packages/database/prisma/migrations/20250901151550_add_gh_connected_repo_schema

1 file changed

+0
-53
lines changed
Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,3 @@
1-
-- DropIndex
2-
DROP INDEX "public"."SecretStore_key_idx";
3-
4-
-- DropIndex
5-
DROP INDEX "public"."TaskRun_runtimeEnvironmentId_createdAt_idx";
6-
7-
-- DropIndex
8-
DROP INDEX "public"."TaskRun_runtimeEnvironmentId_id_idx";
9-
10-
-- AlterTable
11-
ALTER TABLE "public"."_BackgroundWorkerToBackgroundWorkerFile" ADD CONSTRAINT "_BackgroundWorkerToBackgroundWorkerFile_AB_pkey" PRIMARY KEY ("A", "B");
12-
13-
-- DropIndex
14-
DROP INDEX "public"."_BackgroundWorkerToBackgroundWorkerFile_AB_unique";
15-
16-
-- AlterTable
17-
ALTER TABLE "public"."_BackgroundWorkerToTaskQueue" ADD CONSTRAINT "_BackgroundWorkerToTaskQueue_AB_pkey" PRIMARY KEY ("A", "B");
18-
19-
-- DropIndex
20-
DROP INDEX "public"."_BackgroundWorkerToTaskQueue_AB_unique";
21-
22-
-- AlterTable
23-
ALTER TABLE "public"."_TaskRunToTaskRunTag" ADD CONSTRAINT "_TaskRunToTaskRunTag_AB_pkey" PRIMARY KEY ("A", "B");
24-
25-
-- DropIndex
26-
DROP INDEX "public"."_TaskRunToTaskRunTag_AB_unique";
27-
28-
-- AlterTable
29-
ALTER TABLE "public"."_WaitpointRunConnections" ADD CONSTRAINT "_WaitpointRunConnections_AB_pkey" PRIMARY KEY ("A", "B");
30-
31-
-- DropIndex
32-
DROP INDEX "public"."_WaitpointRunConnections_AB_unique";
33-
34-
-- AlterTable
35-
ALTER TABLE "public"."_completedWaitpoints" ADD CONSTRAINT "_completedWaitpoints_AB_pkey" PRIMARY KEY ("A", "B");
36-
37-
-- DropIndex
38-
DROP INDEX "public"."_completedWaitpoints_AB_unique";
39-
40-
-- CreateTable
411
CREATE TABLE "public"."ConnectedGithubRepository" (
422
"id" TEXT NOT NULL,
433
"projectId" TEXT NOT NULL,
@@ -50,23 +10,10 @@ CREATE TABLE "public"."ConnectedGithubRepository" (
5010
CONSTRAINT "ConnectedGithubRepository_pkey" PRIMARY KEY ("id")
5111
);
5212

53-
-- CreateIndex
5413
CREATE INDEX "ConnectedGithubRepository_repositoryId_idx" ON "public"."ConnectedGithubRepository"("repositoryId");
5514

56-
-- CreateIndex
5715
CREATE UNIQUE INDEX "ConnectedGithubRepository_projectId_key" ON "public"."ConnectedGithubRepository"("projectId");
5816

59-
-- CreateIndex
60-
CREATE INDEX "SecretStore_key_idx" ON "public"."SecretStore"("key" text_pattern_ops);
61-
62-
-- CreateIndex
63-
CREATE INDEX "TaskRun_runtimeEnvironmentId_id_idx" ON "public"."TaskRun"("runtimeEnvironmentId", "id" DESC);
64-
65-
-- CreateIndex
66-
CREATE INDEX "TaskRun_runtimeEnvironmentId_createdAt_idx" ON "public"."TaskRun"("runtimeEnvironmentId", "createdAt" DESC);
67-
68-
-- AddForeignKey
6917
ALTER TABLE "public"."ConnectedGithubRepository" ADD CONSTRAINT "ConnectedGithubRepository_projectId_fkey" FOREIGN KEY ("projectId") REFERENCES "public"."Project"("id") ON DELETE CASCADE ON UPDATE CASCADE;
7018

71-
-- AddForeignKey
7219
ALTER TABLE "public"."ConnectedGithubRepository" ADD CONSTRAINT "ConnectedGithubRepository_repositoryId_fkey" FOREIGN KEY ("repositoryId") REFERENCES "public"."GithubRepository"("id") ON DELETE CASCADE ON UPDATE CASCADE;

0 commit comments

Comments
 (0)