Ensure that pinned_order is unique.

This commit is contained in:
Greyson Parrelli
2025-02-21 16:07:10 -05:00
committed by GitHub
parent 46e303ffca
commit 464ffbabdb
8 changed files with 223 additions and 33 deletions

View File

@@ -171,9 +171,10 @@ public class ApplicationMigrations {
// static final int FIX_INACTIVE_GROUPS = 127;
static final int DUPLICATE_E164_FIX = 128;
static final int FTS_TRIGGER_FIX = 129;
static final int THREAD_TABLE_PINNED_MIGRATION = 130;
}
public static final int CURRENT_VERSION = 129;
public static final int CURRENT_VERSION = 130;
/**
* This *must* be called after the {@link JobManager} has been instantiated, but *before* the call
@@ -788,6 +789,10 @@ public class ApplicationMigrations {
jobs.put(Version.FTS_TRIGGER_FIX, new DatabaseMigrationJob());
}
if (lastSeenVersion < Version.THREAD_TABLE_PINNED_MIGRATION) {
jobs.put(Version.THREAD_TABLE_PINNED_MIGRATION, new DatabaseMigrationJob());
}
return jobs;
}