we aren't using categories so we changed the business rule to make device names unique for an account

pull/79/head
Chris Veilleux 2019-03-20 13:35:06 -05:00
parent 3393f3395f
commit 0b1fca1141
1 changed files with 1 additions and 1 deletions

View File

@ -22,5 +22,5 @@ CREATE TABLE device.device (
last_contact_ts timestamp,
insert_ts TIMESTAMP NOT NULL
DEFAULT CURRENT_TIMESTAMP,
UNIQUE (account_id, category_id, name)
UNIQUE (account_id, name)
);