mirror of
https://github.com/element-hq/dendrite.git
synced 2025-09-13 21:02:25 +03:00
mas: add missing server_name field to sqlite migration
This commit is contained in:
parent
3619a6de8d
commit
64f308b55c
1 changed files with 2 additions and 2 deletions
|
@ -24,9 +24,9 @@ func UpDropPrimaryKeyConstraint(ctx context.Context, tx *sql.Tx) error {
|
||||||
);
|
);
|
||||||
INSERT
|
INSERT
|
||||||
INTO userapi_devices (
|
INTO userapi_devices (
|
||||||
access_token, session_id, device_id, localpart, created_ts, display_name, last_seen_ts, ip, user_agent
|
access_token, session_id, device_id, localpart, server_name, created_ts, display_name, last_seen_ts, ip, user_agent
|
||||||
) SELECT
|
) SELECT
|
||||||
access_token, session_id, device_id, localpart, created_ts, display_name, created_ts, '', ''
|
access_token, session_id, device_id, localpart, server_name, created_ts, display_name, created_ts, '', ''
|
||||||
FROM userapi_devices_tmp;
|
FROM userapi_devices_tmp;
|
||||||
DROP TABLE userapi_devices_tmp;`)
|
DROP TABLE userapi_devices_tmp;`)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue