From 53b9d5cae3587d01eff35c0e0451770b07800653 Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Sat, 23 Jun 2018 00:28:34 +0200 Subject: [PATCH] Fix column type. --- .../java/info/nightscout/androidaps/db/DatabaseHelper.java | 4 ++-- .../java/info/nightscout/androidaps/queue/CommandQueue.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/db/DatabaseHelper.java b/app/src/main/java/info/nightscout/androidaps/db/DatabaseHelper.java index 12b8b46a85..49b2a1e2f6 100644 --- a/app/src/main/java/info/nightscout/androidaps/db/DatabaseHelper.java +++ b/app/src/main/java/info/nightscout/androidaps/db/DatabaseHelper.java @@ -122,7 +122,7 @@ public class DatabaseHelper extends OrmLiteSqliteOpenHelper { createRowIfNotExists(getDaoBgReadings(), DatabaseHelper.DATABASE_BGREADINGS, "filtered", "integer"); createRowIfNotExists(getDaoBgReadings(), DatabaseHelper.DATABASE_BGREADINGS, - "sourcePlugin", "integer"); + "sourcePlugin", "text"); } catch (SQLException e) { log.error("Can't create database", e); @@ -132,7 +132,7 @@ public class DatabaseHelper extends OrmLiteSqliteOpenHelper { private void createRowIfNotExists(Dao dao, String table, String name, String type) { try { - dao.executeRaw("ALTER TABLE `" + table + "` ADD CoLUMN `" + name + " " + type); + dao.executeRaw("ALTER TABLE `" + table + "` ADD COLUMN `" + name + " " + type); } catch (SQLException e) { // row already exists } diff --git a/app/src/main/java/info/nightscout/androidaps/queue/CommandQueue.java b/app/src/main/java/info/nightscout/androidaps/queue/CommandQueue.java index 47fe4acd6a..c3188db587 100644 --- a/app/src/main/java/info/nightscout/androidaps/queue/CommandQueue.java +++ b/app/src/main/java/info/nightscout/androidaps/queue/CommandQueue.java @@ -180,7 +180,7 @@ public class CommandQueue { if (type == Command.CommandType.SMB_BOLUS) { if (isRunning(Command.CommandType.BOLUS) || bolusInQueue()) { - log.debug("Rejecting SMB since a bolus is queue/running"); + log.debug("Rejecting SMB since a bolus is queued/running"); return false; } if (detailedBolusInfo.lastKnownBolusTime < TreatmentsPlugin.getPlugin().getLastBolusTime()) {