aboutsummaryrefslogtreecommitdiff
path: root/migrations
diff options
context:
space:
mode:
authorDaniel García <[email protected]>2018-05-04 20:10:35 +0200
committerDaniel García <[email protected]>2018-05-04 20:10:35 +0200
commit79b4ddcae8d6f00af6db1d04c478637744ef3622 (patch)
tree1928b4a9391a4df70cf6b8f3d56f1206fee6e012 /migrations
parent0cb58add54a85993ba9ff3665df170dfce04972e (diff)
downloadvaultwarden-79b4ddcae8d6f00af6db1d04c478637744ef3622.tar.gz
vaultwarden-79b4ddcae8d6f00af6db1d04c478637744ef3622.zip
Added read_only bit to users_collections
Diffstat (limited to 'migrations')
-rw-r--r--migrations/2018-04-27-155151_create_users_ciphers/down.sql0
-rw-r--r--migrations/2018-04-27-155151_create_users_ciphers/up.sql4
2 files changed, 3 insertions, 1 deletions
diff --git a/migrations/2018-04-27-155151_create_users_ciphers/down.sql b/migrations/2018-04-27-155151_create_users_ciphers/down.sql
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/migrations/2018-04-27-155151_create_users_ciphers/down.sql
diff --git a/migrations/2018-04-27-155151_create_users_ciphers/up.sql b/migrations/2018-04-27-155151_create_users_ciphers/up.sql
index 12c096ef..747f9e29 100644
--- a/migrations/2018-04-27-155151_create_users_ciphers/up.sql
+++ b/migrations/2018-04-27-155151_create_users_ciphers/up.sql
@@ -29,4 +29,6 @@ INSERT INTO folders_ciphers (cipher_uuid, folder_uuid)
SELECT uuid, folder_uuid FROM oldCiphers WHERE folder_uuid IS NOT NULL;
-DROP TABLE oldCiphers; \ No newline at end of file
+DROP TABLE oldCiphers;
+
+ALTER TABLE users_collections ADD COLUMN read_only BOOLEAN NOT NULL DEFAULT 0; -- False