1
0
Fork 0

[javascript] added database function to fetch all the ships present in a specific system

This commit is contained in:
Julien Dessaux 2023-09-12 23:06:10 +02:00
parent 4551c1a2dd
commit e52662f829
Signed by: adyxax
GPG key ID: F92E51B86E07177E
2 changed files with 11 additions and 0 deletions

View file

@ -3,3 +3,4 @@ CREATE TABLE ships (
data JSON NOT NULL
);
CREATE UNIQUE INDEX ships_data_symbol ON ships (json_extract(data, '$.symbol'));
CREATE INDEX ships_data_nav_systemSymbol ON ships (json_extract(data, '$.nav.systemSymbol'));