From 2d598d4494c6839d2b15450e3036f080e5b30c4c Mon Sep 17 00:00:00 2001 From: Peter Havekes Date: Mon, 9 Dec 2024 09:41:50 +0100 Subject: [PATCH] Change the notificationtype field length (#320) Initially, the notificationtype column was created as VARCHAR(10). However, this size is too small to accommodate the value 'APNS_DIRECT'. --- config/db/mysql-create-tables.sql | 2 +- config/db/mysql-upgrade-notificationtype.sql | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 config/db/mysql-upgrade-notificationtype.sql diff --git a/config/db/mysql-create-tables.sql b/config/db/mysql-create-tables.sql index fbf0708a..ea11938e 100644 --- a/config/db/mysql-create-tables.sql +++ b/config/db/mysql-create-tables.sql @@ -7,7 +7,7 @@ CREATE TABLE IF NOT EXISTS user ( tmpblocktimestamp BIGINT, tmpblockattempts integer, blocked tinyint(1), - notificationtype varchar(10), + notificationtype varchar(15), notificationaddress varchar(256) ); diff --git a/config/db/mysql-upgrade-notificationtype.sql b/config/db/mysql-upgrade-notificationtype.sql new file mode 100644 index 00000000..31c29ea0 --- /dev/null +++ b/config/db/mysql-upgrade-notificationtype.sql @@ -0,0 +1,6 @@ +/* + Initially, the notificationtype column was created as VARCHAR(10). However, + this size is too small to accommodate the value 'APNS_DIRECT'. +*/ +ALTER TABLE user MODIFY notificationtype VARCHAR (15); +