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