From 64ab43549d90dfd6d7f1e14d16da92918599b0f8 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); -- ---------------------------------------------