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); +