From 7402687d0e46e903cae49a9c2c16ab72e5e9d38d Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Mon, 14 Oct 2019 17:52:00 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E2=80=94=20Fix=20#165=20?= =?UTF-8?q?=E2=80=94=20Now=20can=20send=20large=20files=20(>2Gio)=20while?= =?UTF-8?q?=20using=20a=20DB=20other=20than=20SQLite?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG | 1 + utilities/migrations/mysql.sql | 4 ++++ utilities/migrations/pg.sql | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index f563649..4a7d8e6 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,7 @@ Revision history for Lufi ?.??.? ????-??-?? + - Now can send large files (>2Gio) while using a DB other than SQLite (#165) 0.04.5 2019-10-14 - Update german language diff --git a/utilities/migrations/mysql.sql b/utilities/migrations/mysql.sql index 7f34826..e9a8ebb 100644 --- a/utilities/migrations/mysql.sql +++ b/utilities/migrations/mysql.sql @@ -47,3 +47,7 @@ CREATE TABLE IF NOT EXISTS invitations ( ); -- 3 down DROP TABLE invitations; +-- 4 up +ALTER TABLE files MODIFY filesize bigint; +-- 4 down +ALTER TABLE files MODIFY filesize integer; diff --git a/utilities/migrations/pg.sql b/utilities/migrations/pg.sql index 712f07c..28c8c03 100644 --- a/utilities/migrations/pg.sql +++ b/utilities/migrations/pg.sql @@ -50,3 +50,7 @@ CREATE TABLE IF NOT EXISTS invitations ( ); -- 4 down DROP TABLE invitations; +-- 5 up +ALTER TABLE files ALTER COLUMN filesize TYPE bigint; +-- 5 down +ALTER TABLE files ALTER COLUMN filesize TYPE integer;