diff options
| author | root <root@turin.home> | 2022-02-05 18:40:27 +0000 |
|---|---|---|
| committer | root <root@turin.home> | 2022-02-05 18:40:27 +0000 |
| commit | df7e05fea4a14d6749eb476ae4e66b4f2a771a19 (patch) | |
| tree | 8f76b210e10cbb6377f9675a8645a3299700fd20 /sql.py | |
| parent | 6671090e31ab30711f169abfb61d880b50ba27d8 (diff) | |
Working on a few last features.
Diffstat (limited to 'sql.py')
| -rw-r--r-- | sql.py | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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) ); """ ) |
