pull/2692/head
kunfei 2 years ago
parent 97705c6350
commit 6a158bd8a7
  1. 1724
      app/schemas/io.legado.app.data.AppDatabase/58.json
  2. 5
      app/src/main/java/io/legado/app/data/AppDatabase.kt
  3. 5
      app/src/main/java/io/legado/app/data/entities/BookGroup.kt

File diff suppressed because it is too large Load Diff

@ -20,7 +20,7 @@ val appDb by lazy {
} }
@Database( @Database(
version = 57, version = 58,
exportSchema = true, exportSchema = true,
entities = [Book::class, BookGroup::class, BookSource::class, BookChapter::class, entities = [Book::class, BookGroup::class, BookSource::class, BookChapter::class,
ReplaceRule::class, SearchBook::class, SearchKeyword::class, Cookie::class, ReplaceRule::class, SearchBook::class, SearchKeyword::class, Cookie::class,
@ -41,7 +41,8 @@ val appDb by lazy {
AutoMigration(from = 53, to = 54), AutoMigration(from = 53, to = 54),
AutoMigration(from = 54, to = 55, spec = DatabaseMigrations.Migration_54_55::class), AutoMigration(from = 54, to = 55, spec = DatabaseMigrations.Migration_54_55::class),
AutoMigration(from = 55, to = 56), AutoMigration(from = 55, to = 56),
AutoMigration(from = 56, to = 57) AutoMigration(from = 56, to = 57),
AutoMigration(from = 57, to = 58)
] ]
) )
abstract class AppDatabase : RoomDatabase() { abstract class AppDatabase : RoomDatabase() {

@ -2,6 +2,7 @@ package io.legado.app.data.entities
import android.content.Context import android.content.Context
import android.os.Parcelable import android.os.Parcelable
import androidx.room.ColumnInfo
import androidx.room.Entity import androidx.room.Entity
import androidx.room.PrimaryKey import androidx.room.PrimaryKey
import io.legado.app.R import io.legado.app.R
@ -16,7 +17,9 @@ data class BookGroup(
var groupName: String, var groupName: String,
var cover: String? = null, var cover: String? = null,
var order: Int = 0, var order: Int = 0,
var show: Boolean = true var show: Boolean = true,
@ColumnInfo(defaultValue = "-1")
var bookSort: Int = -1
) : Parcelable { ) : Parcelable {
fun getManageName(context: Context): String { fun getManageName(context: Context): String {

Loading…
Cancel
Save