-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5c10d81
commit de5cf4a
Showing
3 changed files
with
4,397 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
CREATE TABLE IF NOT EXISTS "resource_provider_aws" ( | ||
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, | ||
"resource_provider_id" uuid NOT NULL, | ||
"aws_role_arns" text[] NOT NULL | ||
); | ||
--> statement-breakpoint | ||
ALTER TABLE "workspace" ADD COLUMN "aws_role_arn" text;--> statement-breakpoint | ||
DO $$ BEGIN | ||
ALTER TABLE "resource_provider_aws" ADD CONSTRAINT "resource_provider_aws_resource_provider_id_resource_provider_id_fk" FOREIGN KEY ("resource_provider_id") REFERENCES "public"."resource_provider"("id") ON DELETE cascade ON UPDATE no action; | ||
EXCEPTION | ||
WHEN duplicate_object THEN null; | ||
END $$; |
Oops, something went wrong.