1
0
Fork 0

[javascript] refactored ships and systems database interface

This commit is contained in:
Julien Dessaux 2023-09-03 23:01:18 +02:00
parent e03bb90611
commit f89af1145d
Signed by: adyxax
GPG key ID: F92E51B86E07177E
3 changed files with 40 additions and 112 deletions

View file

@ -1,6 +1,5 @@
CREATE TABLE ships (
id INTEGER PRIMARY KEY,
data JSON NOT NULL,
updated DATE DEFAULT NULL
data JSON NOT NULL
);
CREATE UNIQUE INDEX ships_data_symbol ON ships (json_extract(data, '$.symbol'));