From 73d896f3782be5bd94b8abc63f9d69710020df8f Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Sun, 27 Jul 2014 19:42:44 -0700 Subject: [PATCH] Index shouldn't be unique. --- src/org/thoughtcrime/securesms/database/DatabaseFactory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/thoughtcrime/securesms/database/DatabaseFactory.java b/src/org/thoughtcrime/securesms/database/DatabaseFactory.java index c804052ba8..dbeb13d68d 100644 --- a/src/org/thoughtcrime/securesms/database/DatabaseFactory.java +++ b/src/org/thoughtcrime/securesms/database/DatabaseFactory.java @@ -707,8 +707,8 @@ public class DatabaseFactory { if (oldVersion < INTRODUCED_DELIVERY_RECEIPTS) { db.execSQL("ALTER TABLE sms ADD COLUMN delivery_receipt_count INTEGER DEFAULT 0;"); db.execSQL("ALTER TABLE mms ADD COLUMN delivery_receipt_count INTEGER DEFAULT 0;"); - db.execSQL("CREATE UNIQUE INDEX IF NOT EXISTS sms_date_sent_index ON sms (date_sent);"); - db.execSQL("CREATE UNIQUE INDEX IF NOT EXISTS mms_date_sent_index ON mms (date);"); + db.execSQL("CREATE INDEX IF NOT EXISTS sms_date_sent_index ON sms (date_sent);"); + db.execSQL("CREATE INDEX IF NOT EXISTS mms_date_sent_index ON mms (date);"); } db.setTransactionSuccessful();