we aren't using categories so we changed the business rule to make device names unique for an account
parent
3393f3395f
commit
0b1fca1141
|
@ -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)
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue