diff options
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) ); """ ) |
