-
Notifications
You must be signed in to change notification settings - Fork 19
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
syn2mas: migrate access tokens, refresh tokens and devices #3926
Changes from all commits
5ce953b
0f3b2d2
62c21e4
9863c88
1a69322
aef2dc3
8577d3f
ca32c5e
e308882
b7bb27b
7181cc8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
-- Copyright 2025 New Vector Ltd. | ||
-- | ||
-- SPDX-License-Identifier: AGPL-3.0-only | ||
-- Please see LICENSE in the repository root for full details. | ||
|
||
ALTER TABLE compat_sessions | ||
-- Stores a human-readable name for the device. | ||
-- syn2mas behaviour: Will be populated from the device name in Synapse. | ||
ADD COLUMN human_name TEXT; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
-- Copyright 2025 New Vector Ltd. | ||
-- | ||
-- SPDX-License-Identifier: AGPL-3.0-only | ||
-- Please see LICENSE in the repository root for full details. | ||
|
||
ALTER TABLE users | ||
-- Track whether users are guests. | ||
-- Although guest support is not present in MAS yet, syn2mas should import | ||
-- these users and therefore we should track their state. | ||
ADD COLUMN is_guest BOOLEAN NOT NULL DEFAULT FALSE; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add
AND consumed_at IS NULL
, so that we don't update all the refresh tokens consumed tsAlso, you need to change/remove the
DatabaseError::ensure_affected_rows(&res, 1)
bellow, else it will error out if there are more than one row affectedThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did that in 59e25c0