From c22d6e741a7f4d611615847f27611893e1866e46 Mon Sep 17 00:00:00 2001 From: wiz Date: Sat, 17 Oct 2020 11:32:42 +0900 Subject: [PATCH] Change DB structure for donations: int -> varchar, blob -> mediumblob --- mariadb-structure.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mariadb-structure.sql b/mariadb-structure.sql index 052f0fb1f..d045b3ce3 100644 --- a/mariadb-structure.sql +++ b/mariadb-structure.sql @@ -103,5 +103,5 @@ ALTER TABLE `donations` ALTER TABLE `donations` ADD UNIQUE(`order_id`); -ALTER TABLE `donations` ADD `image` BLOB NULL AFTER `imageUrl`; -ALTER TABLE `donations` ADD `twitter_id` INT NULL AFTER `handle`; +ALTER TABLE `donations` ADD `image` MEDIUMBLOB NULL AFTER `imageUrl`; +ALTER TABLE `donations` ADD `twitter_id` VARCHAR(250) NULL AFTER `handle`;