diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/com/android/photos/data/PhotoDatabase.java | 5 | ||||
| -rw-r--r-- | src/com/android/photos/data/PhotoProvider.java | 2 |
2 files changed, 2 insertions, 5 deletions
diff --git a/src/com/android/photos/data/PhotoDatabase.java b/src/com/android/photos/data/PhotoDatabase.java index 8585edc04..a87f00bfa 100644 --- a/src/com/android/photos/data/PhotoDatabase.java +++ b/src/com/android/photos/data/PhotoDatabase.java @@ -59,14 +59,13 @@ 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.NAME, "Text NOT NULL" }, { Albums.VISIBILITY, "INTEGER NOT NULL" }, { Albums.LOCATION_STRING, "TEXT" }, - { Albums.TITLE, "TEXT" }, + { Albums.TITLE, "TEXT NOT NULL" }, { Albums.SUMMARY, "TEXT" }, { Albums.DATE_PUBLISHED, "INTEGER" }, { Albums.DATE_MODIFIED, "INTEGER" }, - createUniqueConstraint(Albums.PARENT_ID, Albums.NAME), + createUniqueConstraint(Albums.PARENT_ID, Albums.TITLE), }; private static final String[][] CREATE_METADATA = { diff --git a/src/com/android/photos/data/PhotoProvider.java b/src/com/android/photos/data/PhotoProvider.java index a4fe8fdd2..7d751bf95 100644 --- a/src/com/android/photos/data/PhotoProvider.java +++ b/src/com/android/photos/data/PhotoProvider.java @@ -131,8 +131,6 @@ public class PhotoProvider extends ContentProvider { 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"; - /** Column name for the name of the album. String value. */ - public static final String NAME = "name"; /** * Column name for the visibility level of the album. Can be any of the * VISIBILITY_* values. |
