Fix sql script
This commit is contained in:
parent
0aab134b6c
commit
23465f3d1f
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue