File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -1140,11 +1140,17 @@ CREATE INDEX msgs_status_updates_index2 ON msgs_status_updates (uid);
1140
1140
1141
1141
inc_and_check ( & mut migration_version, 128 ) ?;
1142
1142
if dbversion < migration_version {
1143
+ // Add the timestamp of addition and removal.
1144
+ //
1145
+ // If `add_timestamp >= remove_timestamp`,
1146
+ // then the member is currently a member of the chat.
1147
+ // If `add_timestamp < remove_timestamp`,
1148
+ // then the member is a past member.
1143
1149
sql. execute_migration (
1144
1150
"ALTER TABLE chats_contacts
1145
- ADD COLUMN timestamp NOT NULL DEFAULT 0;
1151
+ ADD COLUMN add_timestamp NOT NULL DEFAULT 0;
1146
1152
ALTER TABLE chats_contacts
1147
- ADD COLUMN is_tombstone NOT NULL DEFAULT FALSE ;
1153
+ ADD COLUMN remove_timestamp NOT NULL DEFAULT 0 ;
1148
1154
" ,
1149
1155
migration_version,
1150
1156
)
You can’t perform that action at this time.
0 commit comments