summaryrefslogtreecommitdiff
path: root/sql.py
diff options
context:
space:
mode:
authorroot <root@turin.home>2022-02-05 18:40:27 +0000
committerroot <root@turin.home>2022-02-05 18:40:27 +0000
commitdf7e05fea4a14d6749eb476ae4e66b4f2a771a19 (patch)
tree8f76b210e10cbb6377f9675a8645a3299700fd20 /sql.py
parent6671090e31ab30711f169abfb61d880b50ba27d8 (diff)
Working on a few last features.
Diffstat (limited to 'sql.py')
-rw-r--r--sql.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/sql.py b/sql.py
index 38d40e1..7276ff9 100644
--- a/sql.py
+++ b/sql.py
@@ -47,10 +47,11 @@ class db:
"""
CREATE TABLE weather (
date text not null,
+ time integer not null,
temperature real,
- wind real,
- PRIMARY KEY (date),
- FOREIGN KEY (date) REFERENCES temperature(date)
+ PRIMARY KEY (date, times),
+ FOREIGN KEY (date) REFERENCES temperature(date),
+ FOREIGN KEY (time) REFERENCES temperature(time)
);
"""
)