Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-- +goose Up
ALTER TABLE trigger_dev.task_runs_v2
ADD COLUMN IF NOT EXISTS external_deployment_id String DEFAULT '';
Comment thread
0ski marked this conversation as resolved.

-- +goose Down
ALTER TABLE trigger_dev.task_runs_v2
DROP COLUMN IF EXISTS external_deployment_id;
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE "public"."WorkerDeployment" ADD COLUMN IF NOT EXISTS "externalId" TEXT;
Comment thread
0ski marked this conversation as resolved.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CREATE INDEX CONCURRENTLY IF NOT EXISTS "WorkerDeployment_environmentId_externalId_idx" ON "public"."WorkerDeployment"("environmentId", "externalId");
Comment thread
0ski marked this conversation as resolved.
2 changes: 2 additions & 0 deletions internal-packages/database/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -2288,6 +2288,7 @@ model WorkerDeployment {
triggeredById String?
triggeredVia String?
commitSHA String?
externalId String?

startedAt DateTime?
installedAt DateTime?
Expand Down Expand Up @@ -2316,6 +2317,7 @@ model WorkerDeployment {
@@index([commitSHA])
@@index([environmentId, createdAt])
@@index([environmentId, status, id])
@@index([environmentId, externalId])
}

enum WorkerDeploymentStatus {
Expand Down
Loading