Skip to content

Commit

Permalink
Revert "chore: add new column for storing the self destruction timest…
Browse files Browse the repository at this point in the history
…amp"

This reverts commit 07f3ddb.
  • Loading branch information
Ed Geraghty committed Apr 15, 2022
1 parent 21e4b59 commit c32bdab
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions lib/storage/database.dart
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ class StorageDatabase extends _$StorageDatabase {

// you should bump this number whenever you change or add a table definition.
@override
int get schemaVersion => 9;
int get schemaVersion => 8;

@override
MigrationStrategy get migration => MigrationStrategy(
Expand All @@ -237,9 +237,6 @@ class StorageDatabase extends _$StorageDatabase {
},
onUpgrade: (Migrator m, int from, int to) async {
printInfo('[MIGRATION] VERSION $from to $to');
if (from == 8) {
await m.addColumn(messages, messages.selfDestructAfter);
}
if (from == 7) {
await m.createTable(keySessions);
await m.createTable(messageSessions);
Expand Down
1 change: 0 additions & 1 deletion lib/store/events/messages/schema.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ class Messages extends Table {
// Message timestamps
IntColumn get timestamp => integer()();
IntColumn get received => integer()();
IntColumn get selfDestructAfter => integer()();

// Message Only
TextColumn get body => text().nullable()();
Expand Down

0 comments on commit c32bdab

Please sign in to comment.