Skip to content

Commit

Permalink
save group message content types
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronvoell committed Dec 18, 2024
1 parent eccce06 commit 6c7910e
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
ALTER TABLE group_messages
DROP COLUMN authority_id;

ALTER TABLE group_messages
DROP COLUMN version_major;

ALTER TABLE group_messages
DROP COLUMN version_minor;

ALTER TABLE group_messages
DROP COLUMN content_type;
11 changes: 11 additions & 0 deletions xmtp_mls/migrations/2024-12-18-175338_messages_content_type/up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
ALTER TABLE group_messages
ADD COLUMN content_type INTEGER NOT NULL DEFAULT 0;

ALTER TABLE group_messages
ADD COLUMN version_minor INTEGER NOT NULL DEFAULT 0;

ALTER TABLE group_messages
ADD COLUMN version_major INTEGER NOT NULL DEFAULT 0;

ALTER TABLE group_messages
ADD COLUMN authority_id TEXT NOT NULL DEFAULT '';
4 changes: 4 additions & 0 deletions xmtp_mls/src/storage/encrypted_store/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ diesel::table! {
sender_installation_id -> Binary,
sender_inbox_id -> Text,
delivery_status -> Integer,
content_type -> Integer,
version_minor -> Integer,
version_major -> Integer,
authority_id -> Text,
}
}

Expand Down

0 comments on commit 6c7910e

Please sign in to comment.