From 8107afbd90adcd46e691384694b05301cdc65fe3 Mon Sep 17 00:00:00 2001
From: Julien Dessaux
Date: Sun, 24 Mar 2024 08:45:18 +0100
Subject: [all] fixed erroneous contracts index

---
 nodejs/database/000_init.sql | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'nodejs/database/000_init.sql')

diff --git a/nodejs/database/000_init.sql b/nodejs/database/000_init.sql
index 67967b6..c1fbb98 100644
--- a/nodejs/database/000_init.sql
+++ b/nodejs/database/000_init.sql
@@ -14,4 +14,4 @@ CREATE TABLE contracts (
 	data TEXT NOT NULL
 );
 CREATE UNIQUE INDEX contracts_data_id ON contracts (json_extract(data, '$.id'));
-CREATE UNIQUE INDEX contracts_data_fulfilled ON contracts (json_extract(data, '$.fulfilled'));
+CREATE INDEX contracts_data_fulfilled ON contracts (json_extract(data, '$.fulfilled'));
-- 
cgit v1.2.3

