summaryrefslogtreecommitdiffstats
path: root/src/com/android/photos
diff options
context:
space:
mode:
authorMangesh Ghiware <mghiware@google.com>2013-03-25 15:38:48 -0700
committerMangesh Ghiware <mghiware@google.com>2013-03-25 15:38:48 -0700
commite67807fc8cb22fcd6b210fe660501dbf102c12eb (patch)
tree31d4ed0e69966df882a2c283bad0e96d5458290c /src/com/android/photos
parente09b8f4e1d3b2d1fb99e79f07312d06db87f652d (diff)
downloadandroid_packages_apps_Snap-e67807fc8cb22fcd6b210fe660501dbf102c12eb.tar.gz
android_packages_apps_Snap-e67807fc8cb22fcd6b210fe660501dbf102c12eb.tar.bz2
android_packages_apps_Snap-e67807fc8cb22fcd6b210fe660501dbf102c12eb.zip
Add album type to albums table.
Change-Id: Ib4dfb1de9d814d2ee41c5b855b69f09115912e57
Diffstat (limited to 'src/com/android/photos')
-rw-r--r--src/com/android/photos/data/PhotoDatabase.java3
-rw-r--r--src/com/android/photos/data/PhotoProvider.java2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/com/android/photos/data/PhotoDatabase.java b/src/com/android/photos/data/PhotoDatabase.java
index f0aa4b6d4..fd9cd0790 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 = 1;
+ static final int DB_VERSION = 2;
private static final String SQL_CREATE_TABLE = "CREATE TABLE ";
@@ -59,6 +59,7 @@ public class PhotoDatabase extends SQLiteOpenHelper {
{ Albums.ACCOUNT_ID, "INTEGER NOT NULL" },
// Albums.PARENT_ID is a foreign key to Albums._ID
{ Albums.PARENT_ID, "INTEGER" },
+ { Albums.ALBUM_TYPE, "TEXT" },
{ Albums.VISIBILITY, "INTEGER NOT NULL" },
{ Albums.LOCATION_STRING, "TEXT" },
{ Albums.TITLE, "TEXT NOT NULL" },
diff --git a/src/com/android/photos/data/PhotoProvider.java b/src/com/android/photos/data/PhotoProvider.java
index 7e95688f2..880c67126 100644
--- a/src/com/android/photos/data/PhotoProvider.java
+++ b/src/com/android/photos/data/PhotoProvider.java
@@ -133,6 +133,8 @@ public class PhotoProvider extends SQLiteContentProvider {
public static final String ACCOUNT_ID = "account_id";
/** Parent directory or null if this is in the root. */
public static final String PARENT_ID = "parent_id";
+ /** The type of album. Non-null, if album is auto-generated. String value. */
+ public static final String ALBUM_TYPE = "album_type";
/**
* Column name for the visibility level of the album. Can be any of the
* VISIBILITY_* values.