summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/com/android/photos/data/PhotoDatabase.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/photos/data/PhotoDatabase.java b/src/com/android/photos/data/PhotoDatabase.java
index 1f15c5bdc..0c7b22730 100644
--- a/src/com/android/photos/data/PhotoDatabase.java
+++ b/src/com/android/photos/data/PhotoDatabase.java
@@ -34,7 +34,7 @@ import java.util.List;
public class PhotoDatabase extends SQLiteOpenHelper {
@SuppressWarnings("unused")
private static final String TAG = PhotoDatabase.class.getSimpleName();
- static final int DB_VERSION = 2;
+ static final int DB_VERSION = 3;
private static final String SQL_CREATE_TABLE = "CREATE TABLE ";
@@ -80,7 +80,7 @@ public class PhotoDatabase extends SQLiteOpenHelper {
private static final String[][] CREATE_ACCOUNT = {
{ Accounts._ID, "INTEGER PRIMARY KEY AUTOINCREMENT" },
- { Accounts.ACCOUNT_NAME, "TEXT NOT NULL" },
+ { Accounts.ACCOUNT_NAME, "TEXT UNIQUE NOT NULL" },
};
@Override