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

Increase database field size for notificationaddress, to allow storing ... #183

Merged
merged 1 commit into from
Feb 19, 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 @@ -8,7 +8,7 @@ CREATE TABLE IF NOT EXISTS user (
tmpblockattempts integer,
blocked tinyint(1),
notificationtype varchar(10),
notificationaddress varchar(64)
notificationaddress varchar(256)
phavekes marked this conversation as resolved.
Show resolved Hide resolved
);

CREATE TABLE IF NOT EXISTS tiqrstate (
Expand Down
5 changes: 5 additions & 0 deletions config/db/mysql-upgrade-notificationaddress.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/*
Initially the notificationaddress column was created as varchar(64). That is fine for
tokenaxchange addresses, but too small for FCM addresses.
*/
ALTER TABLE user MODIFY notificationaddress VARCHAR (256);
Loading