Store groupfolder capability

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2023-05-30 10:37:57 +02:00
parent 0a0b9cd2c5
commit 095c5c6766
No known key found for this signature in database
GPG Key ID: 0E00D4D47D0C5AF7
5 changed files with 1152 additions and 3 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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
)

View File

@ -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?
)

View File

@ -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;
}

View File

@ -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";