Skip to content

Commit

Permalink
Change the notificationtype field length (#320)
Browse files Browse the repository at this point in the history
Initially, the notificationtype column was created as VARCHAR(10). However, this size is too small to accommodate the value 'APNS_DIRECT'.
  • Loading branch information
phavekes authored Dec 9, 2024
1 parent e28a0b3 commit 2d598d4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/db/mysql-create-tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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)
);

Expand Down
6 changes: 6 additions & 0 deletions config/db/mysql-upgrade-notificationtype.sql
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit 2d598d4

Please sign in to comment.