mirror of
https://github.com/wger-project/flutter.git
synced 2026-11-30 09:42:50 +01:00
Fix source default, hide health settings section when unavailable
This commit is contained in:
@@ -5192,7 +5192,7 @@ class $MeasurementEntryTableTable extends MeasurementEntryTable
|
||||
false,
|
||||
type: DriftSqlType.string,
|
||||
requiredDuringInsert: false,
|
||||
defaultValue: const Constant('manual'),
|
||||
defaultValue: const Constant('user'),
|
||||
);
|
||||
static const VerificationMeta _externalIdMeta = const VerificationMeta(
|
||||
'externalId',
|
||||
|
||||
@@ -71,9 +71,9 @@ class MeasurementEntryTable extends Table {
|
||||
RealColumn get value => real()();
|
||||
TextColumn get notes => text()();
|
||||
|
||||
/// Where the reading came from: `manual` or a health platform
|
||||
/// (`apple_health`, `health_connect`).
|
||||
TextColumn get source => text().withDefault(const Constant('manual'))();
|
||||
/// Where the reading came from; one of the server's `source` values:
|
||||
/// `user` for manual entries or a health platform (`apple`, `google`).
|
||||
TextColumn get source => text().withDefault(const Constant('user'))();
|
||||
|
||||
/// Platform record UUID, used to deduplicate re-imports. `null` for manual
|
||||
/// entries.
|
||||
|
||||
Reference in New Issue
Block a user