Fix incorrect sql statement.

This commit is contained in:
Mikunj 2019-06-05 13:24:33 +10:00
parent e2ffab9e19
commit 46af1aacbb

View File

@ -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" +
");"
}