Skip to content

Commit

Permalink
rename from job externalRunId -> externalId
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbroks committed Oct 2, 2024
1 parent 83a02f8 commit 23c23fd
Show file tree
Hide file tree
Showing 6 changed files with 3,772 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const handleWorkflowWebhookEvent = async (event: WorkflowRunEvent) => {
const job = await db
.update(schema.job)
.set({ status })
.where(eq(schema.job.externalRunId, id.toString()))
.where(eq(schema.job.externalId, id.toString()))
.returning()
.then(takeFirstOrNull);

Expand Down
2 changes: 2 additions & 0 deletions packages/db/drizzle/0006_stiff_gargoyle.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TABLE "job" RENAME COLUMN "external_run_id" TO "external_id";--> statement-breakpoint
ALTER TABLE "job" ADD COLUMN "external_url" text;
Loading

0 comments on commit 23c23fd

Please sign in to comment.