替换规则添加超时时间

pull/1854/head
kunfei 3 years ago
parent 048716b4ab
commit 13a83202d7
  1. 1625
      app/schemas/io.legado.app.data.AppDatabase/47.json
  2. 5
      app/src/main/java/io/legado/app/data/AppDatabase.kt
  3. 3
      app/src/main/java/io/legado/app/data/entities/ReplaceRule.kt

File diff suppressed because it is too large Load Diff

@ -20,7 +20,7 @@ val appDb by lazy {
} }
@Database( @Database(
version = 46, version = 47,
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,
@ -30,7 +30,8 @@ val appDb by lazy {
autoMigrations = [ autoMigrations = [
AutoMigration(from = 43, to = 44), AutoMigration(from = 43, to = 44),
AutoMigration(from = 44, to = 45), AutoMigration(from = 44, to = 45),
AutoMigration(from = 45, to = 46) AutoMigration(from = 45, to = 46),
AutoMigration(from = 46, to = 47)
] ]
) )
abstract class AppDatabase : RoomDatabase() { abstract class AppDatabase : RoomDatabase() {

@ -43,6 +43,9 @@ data class ReplaceRule(
//是否正则 //是否正则
@ColumnInfo(defaultValue = "1") @ColumnInfo(defaultValue = "1")
var isRegex: Boolean = true, var isRegex: Boolean = true,
//超时时间
@ColumnInfo(defaultValue = "3000")
var timeoutMillisecond: Long = 3000L,
//排序 //排序
@ColumnInfo(name = "sortOrder", defaultValue = "0") @ColumnInfo(name = "sortOrder", defaultValue = "0")
var order: Int = 0 var order: Int = 0

Loading…
Cancel
Save