summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/android/photos/data/PhotoDatabase.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/photos/data/PhotoDatabase.java b/src/com/android/photos/data/PhotoDatabase.java
index 3a9ad3cb1..f0aa4b6d4 100644
--- a/src/com/android/photos/data/PhotoDatabase.java
+++ b/src/com/android/photos/data/PhotoDatabase.java
@@ -176,7 +176,7 @@ public class PhotoDatabase extends SQLiteOpenHelper {
protected static void dropTable(SQLiteDatabase db, String table) {
db.beginTransaction();
try {
- db.execSQL("drop table " + table);
+ db.execSQL("drop table if exists " + table);
db.setTransactionSuccessful();
} finally {
db.endTransaction();