Index shouldn't be unique.

This commit is contained in:
Moxie Marlinspike 2014-07-27 19:42:44 -07:00
parent 36ec1d84a1
commit 73d896f378

View File

@ -707,8 +707,8 @@ public class DatabaseFactory {
if (oldVersion < INTRODUCED_DELIVERY_RECEIPTS) { if (oldVersion < INTRODUCED_DELIVERY_RECEIPTS) {
db.execSQL("ALTER TABLE sms ADD COLUMN delivery_receipt_count INTEGER DEFAULT 0;"); 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("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 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 mms_date_sent_index ON mms (date);");
} }
db.setTransactionSuccessful(); db.setTransactionSuccessful();