Fix sql script

This commit is contained in:
Micke Nordin 2020-05-23 14:09:01 +02:00
parent 0aab134b6c
commit 23465f3d1f

View file

@ -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`)
)
);