From 46af1aacbb7040245fa964d60a43004d1abb50a9 Mon Sep 17 00:00:00 2001 From: Mikunj Date: Wed, 5 Jun 2019 13:24:33 +1000 Subject: [PATCH] Fix incorrect sql statement. --- .../securesms/loki/LokiPreKeyBundleDatabase.kt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/org/thoughtcrime/securesms/loki/LokiPreKeyBundleDatabase.kt b/src/org/thoughtcrime/securesms/loki/LokiPreKeyBundleDatabase.kt index 28480a90c0..eb0a625ff0 100644 --- a/src/org/thoughtcrime/securesms/loki/LokiPreKeyBundleDatabase.kt +++ b/src/org/thoughtcrime/securesms/loki/LokiPreKeyBundleDatabase.kt @@ -31,14 +31,14 @@ class LokiPreKeyBundleDatabase(context: Context, helper: SQLCipherOpenHelper) : @JvmStatic val createTableCommand = "CREATE TABLE $tableName (" + - "$pubKey TEXT PRIMARY KEY" + + "$pubKey TEXT PRIMARY KEY," + "$preKeyId INTEGER," + - "$preKeyPublic TEXT NOT NULL" + - "$signedPreKeyId INTEGER" + - "$signedPreKeyPublic TEXT NOT NULL" + - "$signedPreKeySignature TEXT" + - "$identityKey TEXT NOT NULL" + - "$deviceId INTEGER" + + "$preKeyPublic TEXT NOT NULL," + + "$signedPreKeyId INTEGER," + + "$signedPreKeyPublic TEXT NOT NULL," + + "$signedPreKeySignature TEXT," + + "$identityKey TEXT NOT NULL," + + "$deviceId INTEGER," + "$registrationId INTEGER" + ");" }