mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2024-12-04 22:14:51 +01:00
10 lines
225 B
MySQL
10 lines
225 B
MySQL
|
CREATE TABLE favorites (
|
||
|
user_uuid CHAR(36) NOT NULL REFERENCES users(uuid),
|
||
|
cipher_uuid CHAR(36) NOT NULL REFERENCES ciphers(uuid),
|
||
|
|
||
|
PRIMARY KEY (user_uuid, cipher_uuid)
|
||
|
);
|
||
|
|
||
|
ALTER TABLE ciphers
|
||
|
DROP COLUMN favorite;
|