Improved ships lib with ships db caching
This commit is contained in:
parent
68c457964a
commit
7008c91c6f
10 changed files with 170 additions and 32 deletions
6
database/002_ships.sql
Normal file
6
database/002_ships.sql
Normal file
|
@ -0,0 +1,6 @@
|
|||
CREATE TABLE ships (
|
||||
id INTEGER PRIMARY KEY,
|
||||
data JSON NOT NULL,
|
||||
updated DATE DEFAULT NULL
|
||||
);
|
||||
CREATE UNIQUE INDEX ships_data_symbol on ships (json_extract(data, '$.symbol'));
|
Loading…
Add table
Add a link
Reference in a new issue