This commit is contained in:
kunfei 2023-04-05 13:15:59 +08:00
parent 6dc90202f4
commit 0f47f9ea6e
3 changed files with 1855 additions and 2 deletions

File diff suppressed because it is too large Load Diff

View File

@ -21,7 +21,7 @@ val appDb by lazy {
}
@Database(
version = 63,
version = 64,
exportSchema = true,
entities = [Book::class, BookGroup::class, BookSource::class, BookChapter::class,
ReplaceRule::class, SearchBook::class, SearchKeyword::class, Cookie::class,
@ -48,7 +48,8 @@ val appDb by lazy {
AutoMigration(from = 59, to = 60),
AutoMigration(from = 60, to = 61),
AutoMigration(from = 61, to = 62),
AutoMigration(from = 62, to = 63)
AutoMigration(from = 62, to = 63),
AutoMigration(from = 63, to = 64)
]
)
abstract class AppDatabase : RoomDatabase() {

View File

@ -32,10 +32,13 @@ data class BookSource(
// 详情页url正则
var bookUrlPattern: String? = null,
// 手动排序编号
@ColumnInfo(defaultValue = "0")
var customOrder: Int = 0,
// 是否启用
@ColumnInfo(defaultValue = "1")
var enabled: Boolean = true,
// 启用发现
@ColumnInfo(defaultValue = "1")
var enabledExplore: Boolean = true,
// 启用段评
var enabledReview: Boolean? = false,
@ -66,6 +69,8 @@ data class BookSource(
var weight: Int = 0,
// 发现url
var exploreUrl: String? = null,
// 发现筛选规则
var exploreScreen: String? = null,
// 发现规则
var ruleExplore: ExploreRule? = null,
// 搜索url