Reworked the systems handling and caching with sqlite
This commit is contained in:
parent
afe2db8a35
commit
61b5c8493e
4 changed files with 129 additions and 46 deletions
|
@ -1,6 +1,6 @@
|
|||
CREATE TABLE systems (
|
||||
id INTEGER PRIMARY KEY,
|
||||
symbol TEXT NOT NULL UNIQUE,
|
||||
data TEXT NOT NULL,
|
||||
updated DATE DEFAULT (datetime('now'))
|
||||
data JSON NOT NULL,
|
||||
updated DATE DEFAULT NULL
|
||||
);
|
||||
CREATE UNIQUE INDEX systems_data_symbol on systems (json_extract(data, '$.symbol'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue