Skip to content

Commit 683b21e

Browse files
committed
Added UNIQUE KEYS to fluview_clinical to avoid duplicates
1 parent 4e46532 commit 683b21e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ddl/fluview.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ CREATE TABLE `fluview_clinical` (
269269
`percent_a` double DEFAULT NULL,
270270
`percent_b` double DEFAULT NULL,
271271
PRIMARY KEY (`id`),
272+
UNIQUE KEY `release_date_2` (`release_date`, `epiweek`, `region`),
272273
KEY `release_date` (`release_date`),
273274
KEY `issue` (`issue`),
274275
KEY `epiweek` (`epiweek`),

0 commit comments

Comments
 (0)