Closed aeroxs17 closed 1 week ago
That sounds like your database was already messed up somehow, probably just need to fix it manually
That sounds like your database was already messed up somehow, probably just need to fix it manually
Could you please give a hint where to look for this bug?
if i manually execute query in pgadmin
ALTER TABLE backfill_queue RENAME TO backfill_queue_old;
ALTER TABLE backfill_state RENAME TO backfill_state_old;
ALTER TABLE disappearing_message RENAME TO disappearing_message_old;
ALTER TABLE history_sync_message RENAME TO history_sync_message_old;
ALTER TABLE history_sync_conversation RENAME TO history_sync_conversation_old;
ALTER TABLE media_backfill_requests RENAME TO media_backfill_requests_old;
ALTER TABLE poll_option_id RENAME TO poll_option_id_old;
ALTER TABLE user_portal RENAME TO user_portal_old;
ALTER TABLE portal RENAME TO portal_old;
ALTER TABLE puppet RENAME TO puppet_old;
ALTER TABLE message RENAME TO message_old;
ALTER TABLE reaction RENAME TO reaction_old;
ALTER TABLE "user" RENAME TO user_old;
<and rest of legacymigrate.sql code>
i just get an error
ERROR: relation "user" does not exist
LINE 14: INSERT INTO "user" (bridge_id, mxid, management_room, access..
Something more like ALTER TABLE backfill_queue ADD COLUMN completed_at TIMESTAMP;
Thanks! adding following columns:
ALTER TABLE backfill_queue ADD COLUMN completed_at TIMESTAMP;
ALTER TABLE backfill_queue ADD COLUMN dispatch_time TIMESTAMP;
ALTER TABLE history_sync_message ADD COLUMN message_id TEXT;
solved my problem and bridge successfully updated to v0.11.0 Kinda strange why they were missing though :/
Last compatible version of bridge is v0.10.9, if i try to upgrade to version v0.11.0 i will get following errors:
If i rollback configuration file bridge starts just fine on version v0.10.9 i had multiple failed attempts to upgrade my legacy instance, probably db is now corrupt from all of that, but otherwise bridge is working fin e on v0.10.9
here is full log file set to debug during upgrade: