mirror of
https://github.com/gedoor/legado.git
synced 2025-01-08 11:47:32 +08:00
优化
This commit is contained in:
parent
6dc90202f4
commit
0f47f9ea6e
1847
app/schemas/io.legado.app.data.AppDatabase/64.json
Normal file
1847
app/schemas/io.legado.app.data.AppDatabase/64.json
Normal file
File diff suppressed because it is too large
Load Diff
@ -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() {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user