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;