Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the notificationtype field length #320

Merged
merged 2 commits into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);

Loading