mirror of https://github.com/nextcloud/android
Store groupfolder capability
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
0a0b9cd2c5
commit
095c5c6766
File diff suppressed because it is too large
Load Diff
|
@ -61,7 +61,8 @@ import com.owncloud.android.db.ProviderMeta
|
|||
autoMigrations = [
|
||||
AutoMigration(from = 65, to = 66),
|
||||
AutoMigration(from = 66, to = 67),
|
||||
AutoMigration(from = 68, to = 69)
|
||||
AutoMigration(from = 68, to = 69),
|
||||
AutoMigration(from = 69, to = 70)
|
||||
],
|
||||
exportSchema = true
|
||||
)
|
||||
|
|
|
@ -127,5 +127,7 @@ data class CapabilityEntity(
|
|||
@ColumnInfo(name = ProviderTableMeta.CAPABILITIES_ETAG)
|
||||
val etag: String?,
|
||||
@ColumnInfo(name = ProviderTableMeta.CAPABILITIES_FILES_LOCKING_VERSION)
|
||||
val filesLockingVersion: String?
|
||||
val filesLockingVersion: String?,
|
||||
@ColumnInfo(name = ProviderTableMeta.CAPABILITIES_GROUPFOLDERS)
|
||||
val groupfolders: Int?
|
||||
)
|
||||
|
|
|
@ -1934,6 +1934,7 @@ public class FileDataStorageManager {
|
|||
capability.getUserStatusSupportsEmoji().getValue());
|
||||
contentValues.put(ProviderTableMeta.CAPABILITIES_FILES_LOCKING_VERSION,
|
||||
capability.getFilesLockingVersion());
|
||||
contentValues.put(ProviderTableMeta.CAPABILITIES_GROUPFOLDERS, capability.getGroupfolders().getValue());
|
||||
|
||||
return contentValues;
|
||||
}
|
||||
|
@ -2089,6 +2090,7 @@ public class FileDataStorageManager {
|
|||
getBoolean(cursor, ProviderTableMeta.CAPABILITIES_USER_STATUS_SUPPORTS_EMOJI));
|
||||
capability.setFilesLockingVersion(
|
||||
getString(cursor, ProviderTableMeta.CAPABILITIES_FILES_LOCKING_VERSION));
|
||||
capability.setGroupfolders(getBoolean(cursor, ProviderTableMeta.CAPABILITIES_GROUPFOLDERS));
|
||||
}
|
||||
return capability;
|
||||
}
|
||||
|
|
|
@ -35,7 +35,7 @@ import java.util.List;
|
|||
*/
|
||||
public class ProviderMeta {
|
||||
public static final String DB_NAME = "filelist";
|
||||
public static final int DB_VERSION = 69;
|
||||
public static final int DB_VERSION = 70;
|
||||
|
||||
private ProviderMeta() {
|
||||
// No instance
|
||||
|
@ -256,6 +256,7 @@ public class ProviderMeta {
|
|||
public static final String CAPABILITIES_ETAG = "etag";
|
||||
public static final String CAPABILITIES_USER_STATUS = "user_status";
|
||||
public static final String CAPABILITIES_USER_STATUS_SUPPORTS_EMOJI = "user_status_supports_emoji";
|
||||
public static final String CAPABILITIES_GROUPFOLDERS = "groupfolders";
|
||||
|
||||
//Columns of Uploads table
|
||||
public static final String UPLOADS_LOCAL_PATH = "local_path";
|
||||
|
|
Loading…
Reference in New Issue