mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-05-15 00:26:53 -04:00
4 lines
160 B
MySQL
4 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);
|