Skip to content

Commit

Permalink
fix: assign supported_protocols when migration user db (#2126)
Browse files Browse the repository at this point in the history
  • Loading branch information
typfel committed Oct 13, 2023
1 parent be4f27b commit 1568bd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ CREATE TABLE User (
incomplete_metadata INTEGER AS Boolean NOT NULL DEFAULT 0,
expires_at INTEGER AS Instant,
defederated INTEGER AS Boolean NOT NULL DEFAULT 0,
supported_protocols TEXT AS Set<SupportedProtocolEntity>,
supported_protocols TEXT AS Set<SupportedProtocolEntity> DEFAULT 'PROTEUS',
active_one_on_one_conversation_id TEXT AS QualifiedIDEntity
);
CREATE INDEX user_team_index ON User(team);
Expand Down
2 changes: 1 addition & 1 deletion persistence/src/commonMain/db_user/migrations/60.sqm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ALTER TABLE User ADD COLUMN supported_protocols TEXT AS Set<SupportedProtocolEntity>;
ALTER TABLE User ADD COLUMN supported_protocols TEXT AS Set<SupportedProtocolEntity> DEFAULT 'PROTEUS';

DROP VIEW IF EXISTS ConversationDetails;

Expand Down

0 comments on commit 1568bd6

Please sign in to comment.