summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Dessaux2024-03-24 08:45:18 +0100
committerJulien Dessaux2024-03-27 15:21:37 +0100
commit8107afbd90adcd46e691384694b05301cdc65fe3 (patch)
tree1ffe7da365b142d0663a90784565af1a3a6420a7
parent[haskell] implemented ship refueling (diff)
downloadspacetraders-8107afbd90adcd46e691384694b05301cdc65fe3.tar.gz
spacetraders-8107afbd90adcd46e691384694b05301cdc65fe3.tar.bz2
spacetraders-8107afbd90adcd46e691384694b05301cdc65fe3.zip
[all] fixed erroneous contracts index
Diffstat (limited to '')
-rw-r--r--haskell/src/SpaceTraders/Database/000_init.sql2
-rw-r--r--nodejs/database/000_init.sql2
2 files changed, 2 insertions, 2 deletions
diff --git a/haskell/src/SpaceTraders/Database/000_init.sql b/haskell/src/SpaceTraders/Database/000_init.sql
index 08a8553..47f28c3 100644
--- a/haskell/src/SpaceTraders/Database/000_init.sql
+++ b/haskell/src/SpaceTraders/Database/000_init.sql
@@ -14,7 +14,7 @@ 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'));
CREATE TABLE ships (
id INTEGER PRIMARY KEY,
data TEXT NOT NULL
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'));