mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
1724
app/schemas/io.legado.app.data.AppDatabase/58.json
Normal file
1724
app/schemas/io.legado.app.data.AppDatabase/58.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -20,7 +20,7 @@ val appDb by lazy {
|
||||
}
|
||||
|
||||
@Database(
|
||||
version = 57,
|
||||
version = 58,
|
||||
exportSchema = true,
|
||||
entities = [Book::class, BookGroup::class, BookSource::class, BookChapter::class,
|
||||
ReplaceRule::class, SearchBook::class, SearchKeyword::class, Cookie::class,
|
||||
@@ -41,7 +41,8 @@ val appDb by lazy {
|
||||
AutoMigration(from = 53, to = 54),
|
||||
AutoMigration(from = 54, to = 55, spec = DatabaseMigrations.Migration_54_55::class),
|
||||
AutoMigration(from = 55, to = 56),
|
||||
AutoMigration(from = 56, to = 57)
|
||||
AutoMigration(from = 56, to = 57),
|
||||
AutoMigration(from = 57, to = 58)
|
||||
]
|
||||
)
|
||||
abstract class AppDatabase : RoomDatabase() {
|
||||
|
||||
@@ -2,6 +2,7 @@ package io.legado.app.data.entities
|
||||
|
||||
import android.content.Context
|
||||
import android.os.Parcelable
|
||||
import androidx.room.ColumnInfo
|
||||
import androidx.room.Entity
|
||||
import androidx.room.PrimaryKey
|
||||
import io.legado.app.R
|
||||
@@ -16,7 +17,9 @@ data class BookGroup(
|
||||
var groupName: String,
|
||||
var cover: String? = null,
|
||||
var order: Int = 0,
|
||||
var show: Boolean = true
|
||||
var show: Boolean = true,
|
||||
@ColumnInfo(defaultValue = "-1")
|
||||
var bookSort: Int = -1
|
||||
) : Parcelable {
|
||||
|
||||
fun getManageName(context: Context): String {
|
||||
|
||||
Reference in New Issue
Block a user