refactor: move ignore node to is_ignored field in NodeInfo

This commit is contained in:
andrekir 2024-12-07 08:09:41 -03:00 committed by Andre K
parent 4a1319a645
commit 1ea55b2209
8 changed files with 585 additions and 59 deletions

View file

@ -59,8 +59,9 @@ import com.geeksville.mesh.database.entity.ReactionEntity
AutoMigration(from = 11, to = 12),
AutoMigration(from = 12, to = 13, spec = AutoMigration12to13::class),
AutoMigration(from = 13, to = 14),
AutoMigration(from = 14, to = 15),
],
version = 14,
version = 15,
exportSchema = true,
)
@TypeConverters(Converters::class)

View file

@ -74,6 +74,9 @@ data class NodeEntity(
@ColumnInfo(name = "is_favorite")
var isFavorite: Boolean = false,
@ColumnInfo(name = "is_ignored", defaultValue = "0")
var isIgnored: Boolean = false,
@ColumnInfo(name = "environment_metrics", typeAffinity = ColumnInfo.BLOB)
var environmentTelemetry: TelemetryProtos.Telemetry = TelemetryProtos.Telemetry.getDefaultInstance(),