mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2024-12-28 16:15:58 -05:00
5 lines
172 B
MySQL
5 lines
172 B
MySQL
|
-- First remove the previous primary key
|
||
|
ALTER TABLE devices DROP CONSTRAINT devices_pkey;
|
||
|
-- Add a new combined one
|
||
|
ALTER TABLE devices ADD PRIMARY KEY (uuid, user_uuid);
|