From 9812d727858c4803d69fd5248552149a00a24adb Mon Sep 17 00:00:00 2001 From: Michael Schnuerle Date: Wed, 25 Apr 2018 13:24:04 -0400 Subject: [PATCH] Added constraint on roads --- code/sql/schema.sql | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/sql/schema.sql b/code/sql/schema.sql index f6c2cbc..c778e3c 100644 --- a/code/sql/schema.sql +++ b/code/sql/schema.sql @@ -138,6 +138,9 @@ CREATE TABLE waze.roads "name" VARCHAR(100) NOT NULL ); +ALTER TABLE waze.roads + ADD CONSTRAINT roads_unique_combo UNIQUE(value, name); + CREATE TABLE waze.alert_types ( "id" SERIAL PRIMARY KEY NOT NULL,