mirror of
https://github.com/dani-garcia/vaultwarden
synced 2024-11-26 05:40:18 +00:00
10 lines
231 B
MySQL
10 lines
231 B
MySQL
|
CREATE TABLE favorites (
|
||
|
user_uuid VARCHAR(40) NOT NULL REFERENCES users(uuid),
|
||
|
cipher_uuid VARCHAR(40) NOT NULL REFERENCES ciphers(uuid),
|
||
|
|
||
|
PRIMARY KEY (user_uuid, cipher_uuid)
|
||
|
);
|
||
|
|
||
|
ALTER TABLE ciphers
|
||
|
DROP COLUMN favorite;
|