refactor(MeshLog): add fields for query optimization

- Adds `from_num` and `port_num` fields as indices to the `MeshLog` entity to improve query performance.
- Sets default values for new columns for auto-migration and backward compatibility.
This commit is contained in:
andrekir 2024-09-26 05:34:37 -03:00 committed by Andre K
parent a075dfbd3a
commit 717c932ae2
7 changed files with 800 additions and 55 deletions

View file

@ -37,8 +37,9 @@ import com.geeksville.mesh.database.entity.QuickChatAction
AutoMigration (from = 8, to = 9),
AutoMigration (from = 9, to = 10),
AutoMigration (from = 10, to = 11),
AutoMigration (from = 11, to = 12),
],
version = 11,
version = 12,
exportSchema = true,
)
@TypeConverters(Converters::class)