Commit 1990d7b
Changed files (4)
health_data_store
health_data_store/lib/src/repositories/medicine_intake_repository.dart
@@ -22,7 +22,7 @@ class MedicineIntakeRepository extends Repository<MedicineIntake> {
columns: ['medID'],
where: 'designation = ? '
'AND color ' +((intake.medicine.color != null) ? '= ?' : 'IS NULL')
- + ' AND defaultDose ' +((intake.medicine.dosis != null) ? '= ?' : 'IS '
+ + ' AND defaultDose ' +((intake.medicine.dosis != null) ? '= ?':'IS '
'NULL'),
whereArgs: [
intake.medicine.designation,
health_data_store/lib/src/repositories/medicine_repository.dart
@@ -1,5 +1,6 @@
import 'package:health_data_store/src/database_manager.dart';
import 'package:health_data_store/src/types/medicine.dart';
+import 'package:health_data_store/src/types/medicine_intake.dart';
import 'package:sqflite_common/sqflite.dart';
/// Repository for medicines that are taken by the user.
health_data_store/lib/src/database_manager.dart
@@ -59,7 +59,7 @@ class DatabaseManager {
await _db.execute('CREATE TABLE "Timestamps" ('
'"entryID" INTEGER NOT NULL UNIQUE,'
'"timestampUnixS" INTEGER NOT NULL,'
- 'PRIMARY KEY("entryID")' // TODO: add timezone to determine morning, evening
+ 'PRIMARY KEY("entryID")' // TODO: add timezone to determine time of day
');');
await _db.execute('CREATE TABLE "Intake" ('
'"entryID" INTEGER NOT NULL,'
health_data_store/pubspec.yaml
@@ -12,10 +12,10 @@ dependencies:
sqflite_common: ^2.5.3
dev_dependencies:
- mocktail: ^1.0.3
- sqflite_common_ffi: ^2.1.1+1
- test: ^1.25.2
build_runner: ^2.4.8
freezed: ^2.4.7
json_serializable: ^6.7.1
+ mocktail: ^1.0.3
+ sqflite_common_ffi: ^2.1.1+1
+ test: ^1.25.2