Add "Refetch" option for albums and artists (#93)

This commit is contained in:
vfsfitvnm
2022-07-09 15:14:02 +02:00
parent 3608c912b5
commit 29025da7e9
6 changed files with 632 additions and 56 deletions

View File

@@ -156,6 +156,7 @@ interface Database {
authorsText = null,
thumbnailUrl = null,
shareUrl = null,
timestamp = null,
).also(::insert)
upsert(
@@ -174,7 +175,8 @@ interface Database {
id = artistIds[index],
name = artistName,
thumbnailUrl = null,
info = null
info = null,
timestamp = null,
).also(::insert)
}
}
@@ -212,6 +214,9 @@ interface Database {
@Delete
fun delete(playlist: Playlist)
@Delete
fun delete(playlist: Album)
@Delete
fun delete(songPlaylistMap: SongPlaylistMap)
@@ -249,7 +254,7 @@ interface Database {
views = [
SortedSongPlaylistMap::class
],
version = 12,
version = 13,
exportSchema = true,
autoMigrations = [
AutoMigration(from = 1, to = 2),
@@ -261,6 +266,7 @@ interface Database {
AutoMigration(from = 7, to = 8, spec = DatabaseInitializer.From7To8Migration::class),
AutoMigration(from = 9, to = 10),
AutoMigration(from = 11, to = 12, spec = DatabaseInitializer.From11To12Migration::class),
AutoMigration(from = 12, to = 13),
],
)
@TypeConverters(Converters::class)