0
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden synced 2024-05-23 07:13:48 +02:00
bitwarden_rs/migrations/mysql/2022-03-02-210038_update_devices_primary_key/up.sql
BlackDex c4d565b15b
Update login API code
- Updated jsonwebtoken to latest version
- Trim `username` received from the login form ( Fixes #2348 )
- Make uuid and user_uuid a combined primary key for the devices table ( Fixes #2295 )
- Updated crates including regex which contains a CVE ( https://blog.rust-lang.org/2022/03/08/cve-2022-24713.html )
2022-03-12 18:45:45 +01:00

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