feat: compose app

This commit is contained in:
Lorenzo Migliorero
2024-07-25 22:10:35 +02:00
parent 1f81ebd4fe
commit c681aa2e9f
10 changed files with 3122 additions and 208 deletions

View File

@@ -0,0 +1,8 @@
ALTER TABLE "compose" ADD COLUMN "customGitSSHKeyId" text;--> statement-breakpoint
DO $$ BEGIN
ALTER TABLE "compose" ADD CONSTRAINT "compose_customGitSSHKeyId_ssh-key_sshKeyId_fk" FOREIGN KEY ("customGitSSHKeyId") REFERENCES "public"."ssh-key"("sshKeyId") ON DELETE set null ON UPDATE no action;
EXCEPTION
WHEN duplicate_object THEN null;
END $$;
--> statement-breakpoint
ALTER TABLE "compose" DROP COLUMN IF EXISTS "customGitSSHKey";