aboutsummaryrefslogtreecommitdiff
path: root/migrations/mysql/2018-05-25-232323_update_attachments_reference/up.sql
diff options
context:
space:
mode:
Diffstat (limited to 'migrations/mysql/2018-05-25-232323_update_attachments_reference/up.sql')
-rw-r--r--migrations/mysql/2018-05-25-232323_update_attachments_reference/up.sql4
1 files changed, 2 insertions, 2 deletions
diff --git a/migrations/mysql/2018-05-25-232323_update_attachments_reference/up.sql b/migrations/mysql/2018-05-25-232323_update_attachments_reference/up.sql
index eef50768..50b2c8e2 100644
--- a/migrations/mysql/2018-05-25-232323_update_attachments_reference/up.sql
+++ b/migrations/mysql/2018-05-25-232323_update_attachments_reference/up.sql
@@ -1,8 +1,8 @@
ALTER TABLE attachments RENAME TO oldAttachments;
CREATE TABLE attachments (
- id VARCHAR(40) NOT NULL PRIMARY KEY,
- cipher_uuid VARCHAR(40) NOT NULL REFERENCES ciphers (uuid),
+ id CHAR(36) NOT NULL PRIMARY KEY,
+ cipher_uuid CHAR(36) NOT NULL REFERENCES ciphers (uuid),
file_name TEXT NOT NULL,
file_size INTEGER NOT NULL