From c3eced61e8f528ec2f89e36422903ae2a891cf57 Mon Sep 17 00:00:00 2001 From: Andrew Block Date: Thu, 7 Dec 2023 19:46:01 -0600 Subject: [PATCH] Additional unique index correction (#1885) Signed-off-by: Andrew Block --- scripts/storage.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/storage.sql b/scripts/storage.sql index 939ed1272..b4d2b859d 100644 --- a/scripts/storage.sql +++ b/scripts/storage.sql @@ -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); -- ---------------------------------------------