Change database USER_ID type to String

Signed-off-by: Jonas Mayer <jonas.a.mayer@gmx.net>
This commit is contained in:
Jonas Mayer 2024-03-27 21:25:48 +01:00
parent e69e3d5193
commit 4194c3bccb
4 changed files with 1207 additions and 3 deletions

File diff suppressed because it is too large Load diff

View file

@ -72,7 +72,8 @@ import com.owncloud.android.db.ProviderMeta
AutoMigration(from = 75, to = 76),
AutoMigration(from = 76, to = 77),
AutoMigration(from = 77, to = 78),
AutoMigration(from = 78, to = 79, spec = DatabaseMigrationUtil.ResetCapabilitiesPostMigration::class)
AutoMigration(from = 78, to = 79, spec = DatabaseMigrationUtil.ResetCapabilitiesPostMigration::class),
AutoMigration(from = 79, to = 80, spec = DatabaseMigrationUtil.ResetCapabilitiesPostMigration::class)
],
exportSchema = true
)

View file

@ -55,7 +55,7 @@ data class ShareEntity(
@ColumnInfo(name = ProviderTableMeta.OCSHARES_IS_DIRECTORY)
val isDirectory: Int?,
@ColumnInfo(name = ProviderTableMeta.OCSHARES_USER_ID)
val userId: Int?,
val userId: String?,
@ColumnInfo(name = ProviderTableMeta.OCSHARES_ID_REMOTE_SHARED)
val idRemoteShared: Int?,
@ColumnInfo(name = ProviderTableMeta.OCSHARES_ACCOUNT_OWNER)

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 = 79;
public static final int DB_VERSION = 80;
private ProviderMeta() {
// No instance