Skip to content

Commit 64ab435

Browse files
authored
Additional unique index correction (#1885)
Signed-off-by: Andrew Block <[email protected]>
1 parent c4257b3 commit 64ab435

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/storage.sql

+1-1
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)