Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c5e5b7b4 authored by cketti's avatar cketti
Browse files

Add migration to rewrite pending commands to use folder IDs

parent 5c10cfc6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@ import timber.log.Timber;


class StoreSchemaDefinition implements SchemaDefinition {
    static final int DB_VERSION = 72;
    static final int DB_VERSION = 73;

    private final MigrationsHelper migrationsHelper;

+6 −0
Original line number Diff line number Diff line
package com.fsck.k9.storage.migrations;

class LegacyPendingAppend extends LegacyPendingCommand {
    public String folder;
    public String uid;
}
+4 −0
Original line number Diff line number Diff line
package com.fsck.k9.storage.migrations;

abstract class LegacyPendingCommand {
}
+1 −1
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@ import java.util.List;
import static com.fsck.k9.controller.Preconditions.requireValidUids;
import static com.fsck.k9.helper.Preconditions.checkNotNull;

class LegacyPendingDelete {
class LegacyPendingDelete extends LegacyPendingCommand {
    public final String folder;
    public final List<String> uids;

+5 −0
Original line number Diff line number Diff line
package com.fsck.k9.storage.migrations;

class LegacyPendingExpunge extends LegacyPendingCommand {
    public String folder;
}
Loading