Skip to content

Commit

Permalink
legacymigrate: fix more issues
Browse files Browse the repository at this point in the history
Fixes #721
  • Loading branch information
tulir committed Oct 1, 2024
1 parent dea5ae2 commit 291d87c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions cmd/mautrix-whatsapp/legacymigrate.sql
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ UPDATE message_old SET combined_id = chat_jid || ':' || (
ELSE sender
END
) || ':' || jid;
DELETE FROM message_old WHERE timestamp<0;

INSERT INTO message (
bridge_id, id, part_id, mxid, room_id, room_receiver, sender_id, sender_mxid, timestamp, edit_count, metadata
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ require (
golang.org/x/sync v0.8.0
google.golang.org/protobuf v1.34.2
gopkg.in/yaml.v3 v3.0.1
maunium.net/go/mautrix v0.21.1-0.20241001145228-e0961922e5c0
maunium.net/go/mautrix v0.21.1-0.20241001172103-260f642bf063
)

require (
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,5 @@ gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
maunium.net/go/mauflag v1.0.0 h1:YiaRc0tEI3toYtJMRIfjP+jklH45uDHtT80nUamyD4M=
maunium.net/go/mauflag v1.0.0/go.mod h1:nLivPOpTpHnpzEh8jEdSL9UqO9+/KBJFmNRlwKfkPeA=
maunium.net/go/mautrix v0.21.1-0.20241001145228-e0961922e5c0 h1:r6Y4AJLFw0EWNBxcBY/N4Gl+b2Lv/+oDKKzLNAV93Bs=
maunium.net/go/mautrix v0.21.1-0.20241001145228-e0961922e5c0/go.mod h1:qN4yYKm3brOUWN8dlR0KPbKwSBGXQ4am/kzSQt/kLmY=
maunium.net/go/mautrix v0.21.1-0.20241001172103-260f642bf063 h1:RFhQWaSUZQxSfa4Q3fZWvGCzxBSk7kQPLtpHNwqHmuY=
maunium.net/go/mautrix v0.21.1-0.20241001172103-260f642bf063/go.mod h1:qN4yYKm3brOUWN8dlR0KPbKwSBGXQ4am/kzSQt/kLmY=

0 comments on commit 291d87c

Please sign in to comment.