summaryrefslogtreecommitdiff
path: root/nodejs/database
diff options
context:
space:
mode:
authorJulien Dessaux2023-09-14 00:02:51 +0200
committerJulien Dessaux2023-09-14 00:02:51 +0200
commit4c1a5fdfe1fb99901a24bfdd9d5c42a6939e6dd8 (patch)
tree4d9a8c6319e718a0cb679af2df34ecc7f8e4cf0b /nodejs/database
parent[javascript] reworked basic exploration with systems fetch after registering (diff)
downloadspacetraders-4c1a5fdfe1fb99901a24bfdd9d5c42a6939e6dd8.tar.gz
spacetraders-4c1a5fdfe1fb99901a24bfdd9d5c42a6939e6dd8.tar.bz2
spacetraders-4c1a5fdfe1fb99901a24bfdd9d5c42a6939e6dd8.zip
[javascript] improved contract lib
Diffstat (limited to 'nodejs/database')
-rw-r--r--nodejs/database/000_init.sql1
1 files changed, 1 insertions, 0 deletions
diff --git a/nodejs/database/000_init.sql b/nodejs/database/000_init.sql
index 9c06622..67967b6 100644
--- a/nodejs/database/000_init.sql
+++ b/nodejs/database/000_init.sql
@@ -14,3 +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'));