Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Commit

Permalink
Added constraint on roads
Browse files Browse the repository at this point in the history
  • Loading branch information
schnuerle authored Apr 25, 2018
1 parent a380d9f commit 9812d72
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/sql/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9812d72

Please sign in to comment.