Skip to content

Commit c3eced6

Browse files
sabre1041tommyd450
authored andcommitted
Additional unique index correction (sigstore#1885)
Signed-off-by: Andrew Block <[email protected]>
1 parent c43d979 commit c3eced6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/storage.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ CREATE TABLE IF NOT EXISTS TreeHead(
7575
FOREIGN KEY(TreeId) REFERENCES Trees(TreeId) ON DELETE CASCADE
7676
);
7777

78-
CREATE UNIQUE INDEX TreeHeadRevisionIdx
78+
CREATE UNIQUE INDEX IF NOT EXISTS TreeHeadRevisionIdx
7979
ON TreeHead(TreeId, TreeRevision);
8080

8181
-- ---------------------------------------------

0 commit comments

Comments
 (0)