legacymigrate: fix mx_room_state migration on sqlite

This commit is contained in:
Tulir Asokan
2026-04-16 23:11:15 +03:00
parent b9f0962881
commit ac2a2c2980
2 changed files with 43 additions and 0 deletions
+3
View File
@@ -262,6 +262,9 @@ CREATE TABLE new_mx_room_state (
INSERT INTO new_mx_room_state (room_id, encryption, power_levels, create_event, members_fetched)
SELECT room_id, encryption, power_levels, create_event, COALESCE(has_full_member_list, false)
FROM mx_room_state;
DROP TABLE mx_room_state;
ALTER TABLE new_mx_room_state RENAME TO mx_room_state;
-- end only sqlite
ALTER TABLE mx_user_profile ADD COLUMN name_skeleton bytea;