You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
-- First remove the previous primary key
|
|
ALTER TABLE devices DROP PRIMARY KEY;
|
|
-- Add a new combined one
|
|
ALTER TABLE devices ADD PRIMARY KEY (uuid, user_uuid);
|