Skip to content

Commit

Permalink
fix constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
overheadhunter committed Nov 13, 2023
1 parent 537eaff commit 9e15e20
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ CREATE TABLE "access_token_legacy"
"vault_id" UUID NOT NULL,
"jwe" VARCHAR NOT NULL UNIQUE,
CONSTRAINT "ACCESS_LEGACY_PK" PRIMARY KEY ("device_id", "vault_id"),
CONSTRAINT "ACCESS_LEGACY_FK_DEVICE" FOREIGN KEY ("device_id") REFERENCES "device" ("id") ON DELETE CASCADE,
CONSTRAINT "ACCESS_LEGACY_FK_DEVICE" FOREIGN KEY ("device_id") REFERENCES "device_legacy" ("id") ON DELETE CASCADE,
CONSTRAINT "ACCESS_LEGACY_FK_VAULT" FOREIGN KEY ("vault_id") REFERENCES "vault" ("id") ON DELETE CASCADE
);

Expand Down

0 comments on commit 9e15e20

Please sign in to comment.