Skip to content

Commit

Permalink
Additional unique index correction
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Block <andy.block@gmail.com>
  • Loading branch information
sabre1041 committed Dec 7, 2023
1 parent 921c573 commit f95ce11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/storage.sql
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ CREATE TABLE IF NOT EXISTS TreeHead(
FOREIGN KEY(TreeId) REFERENCES Trees(TreeId) ON DELETE CASCADE
);

CREATE UNIQUE INDEX TreeHeadRevisionIdx
CREATE UNIQUE INDEX IF NOT EXISTS TreeHeadRevisionIdx
ON TreeHead(TreeId, TreeRevision);

-- ---------------------------------------------
Expand Down

0 comments on commit f95ce11

Please sign in to comment.