Search - add support for saving the UserId in the Index
- add the new "user_id" colum - use -1 as a default value This CL depends on that Framework CL for SearchIndexableData: 0d94539e67e997ed7687f33854fc581ce4668da5 See bug: #15837747 Search - update for Enterprise support Change-Id: I0cf2866600732e8e99006050bf9ad388fa44b509
This commit is contained in:
@@ -28,7 +28,7 @@ public class IndexDatabaseHelper extends SQLiteOpenHelper {
|
||||
private static final String TAG = "IndexDatabaseHelper";
|
||||
|
||||
private static final String DATABASE_NAME = "search_index.db";
|
||||
private static final int DATABASE_VERSION = 114;
|
||||
private static final int DATABASE_VERSION = 115;
|
||||
|
||||
public interface Tables {
|
||||
public static final String TABLE_PREFS_INDEX = "prefs_index";
|
||||
@@ -56,6 +56,7 @@ public class IndexDatabaseHelper extends SQLiteOpenHelper {
|
||||
public static final String ICON = "icon";
|
||||
public static final String ENABLED = "enabled";
|
||||
public static final String DATA_KEY_REF = "data_key_reference";
|
||||
public static final String USER_ID = "user_id";
|
||||
}
|
||||
|
||||
public interface MetaColumns {
|
||||
@@ -105,6 +106,8 @@ public class IndexDatabaseHelper extends SQLiteOpenHelper {
|
||||
IndexColumns.ENABLED +
|
||||
", " +
|
||||
IndexColumns.DATA_KEY_REF +
|
||||
", " +
|
||||
IndexColumns.USER_ID +
|
||||
");";
|
||||
|
||||
private static final String CREATE_META_TABLE =
|
||||
|
Reference in New Issue
Block a user