Skip to content

Commit

Permalink
adding a unique constraint for cdn lock
Browse files Browse the repository at this point in the history
  • Loading branch information
rimashah25 committed Aug 31, 2023
1 parent e751861 commit 3208bdd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions traffic_ops/app/db/create_tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4007,6 +4007,12 @@ ALTER TABLE ONLY cdni_footprints ALTER COLUMN id SET DEFAULT nextval('cdni_footp

ALTER TABLE ONLY cdni_limits ALTER COLUMN id SET DEFAULT nextval('cdni_limits_id_seq'::regclass);

--
-- Name: cdn_lock cdn_lock_cdn_username_unique; Type: CONSTRAINT; Schema: public; Owner: traffic_ops
--

ALTER TABLE cdn_lock ADD CONSTRAINT cdn_lock_cdn_username_unique UNIQUE (username, cdn);

--
-- Name: cdni_capabilities pk_cdni_capabilities; Type: CONSTRAINT; Schema: public; Owner: traffic_ops
--
Expand Down

0 comments on commit 3208bdd

Please sign in to comment.