Skip to content

Commit

Permalink
feat: Attach deployment to machine and events (#124)
Browse files Browse the repository at this point in the history
- Add `x-deployment-id` header to `/jobs-request` requests.
- Attach `deployment_id` to `machines` and `events`
- Set `DIFFERENTIAL_DEPLOYMENT_ID` to Lambda runtime environment.
  • Loading branch information
johnjcsmith authored Feb 11, 2024
1 parent 64a8c89 commit f9c0ce5
Show file tree
Hide file tree
Showing 12 changed files with 871 additions and 66 deletions.
6 changes: 6 additions & 0 deletions control-plane/drizzle/0037_empty_molecule_man.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ALTER TABLE "events" ADD COLUMN "deployment_id" varchar(1024);--> statement-breakpoint
DO $$ BEGIN
ALTER TABLE "events" ADD CONSTRAINT "events_deployment_id_deployments_id_fk" FOREIGN KEY ("deployment_id") REFERENCES "deployments"("id") ON DELETE no action ON UPDATE no action;
EXCEPTION
WHEN duplicate_object THEN null;
END $$;
Loading

0 comments on commit f9c0ce5

Please sign in to comment.