mirror of
https://github.com/dani-garcia/vaultwarden
synced 2024-11-28 23:00:25 +00:00
5 lines
160 B
MySQL
5 lines
160 B
MySQL
|
-- 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);
|