From e63db03c288d89a4823d90b63c4950598c59c23b Mon Sep 17 00:00:00 2001 From: BlackDex Date: Wed, 17 Jan 2024 16:29:34 +0100 Subject: [PATCH] Update PostgreSQL migration --- .../2024-01-12-210182_change_attachment_size/up.sql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/migrations/postgresql/2024-01-12-210182_change_attachment_size/up.sql b/migrations/postgresql/2024-01-12-210182_change_attachment_size/up.sql index 4ad2741c..fcd7189c 100644 --- a/migrations/postgresql/2024-01-12-210182_change_attachment_size/up.sql +++ b/migrations/postgresql/2024-01-12-210182_change_attachment_size/up.sql @@ -1 +1,3 @@ -ALTER TABLE attachments MODIFY file_size BIGINT NOT NULL; +ALTER TABLE attachments +ALTER COLUMN file_size TYPE BIGINT, +ALTER COLUMN file_size SET NOT NULL;