vaultwarden/migrations/mysql/2022-03-02-210038_update_de.../up.sql

5 lines
160 B
SQL

-- 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);