Fix sql script

master
Micke Nordin 4 years ago
parent 0aab134b6c
commit 23465f3d1f

@ -10,7 +10,7 @@ CREATE TABLE IF NOT EXISTS `weather` (
`winddir` int DEFAULT NULL,
PRIMARY KEY (`observation_id`),
UNIQUE KEY `date_time_idx` (`date`,`time`,`station`)
)
);
CREATE TABLE IF NOT EXISTS `aggregated_weather` (
`Date_id` int NOT NULL AUTO_INCREMENT,
@ -26,4 +26,4 @@ CREATE TABLE IF NOT EXISTS `aggregated_weather` (
`station` int DEFAULT NULL,
PRIMARY KEY (`Date_id`),
UNIQUE KEY `date_idx` (`Date`,`station`)
)
);

Loading…
Cancel
Save