替换规则添加排除字段
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -21,7 +21,7 @@ val appDb by lazy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Database(
|
@Database(
|
||||||
version = 67,
|
version = 68,
|
||||||
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,
|
||||||
@@ -52,7 +52,8 @@ val appDb by lazy {
|
|||||||
AutoMigration(from = 63, to = 64),
|
AutoMigration(from = 63, to = 64),
|
||||||
AutoMigration(from = 64, to = 65, spec = DatabaseMigrations.Migration_64_65::class),
|
AutoMigration(from = 64, to = 65, spec = DatabaseMigrations.Migration_64_65::class),
|
||||||
AutoMigration(from = 65, to = 66),
|
AutoMigration(from = 65, to = 66),
|
||||||
AutoMigration(from = 66, to = 67)
|
AutoMigration(from = 66, to = 67),
|
||||||
|
AutoMigration(from = 67, to = 68)
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
abstract class AppDatabase : RoomDatabase() {
|
abstract class AppDatabase : RoomDatabase() {
|
||||||
|
|||||||
@@ -40,6 +40,8 @@ data class ReplaceRule(
|
|||||||
//作用于正文
|
//作用于正文
|
||||||
@ColumnInfo(defaultValue = "1")
|
@ColumnInfo(defaultValue = "1")
|
||||||
var scopeContent: Boolean = true,
|
var scopeContent: Boolean = true,
|
||||||
|
//排除范围
|
||||||
|
var excludeScope: String? = null,
|
||||||
//是否启用
|
//是否启用
|
||||||
@ColumnInfo(defaultValue = "1")
|
@ColumnInfo(defaultValue = "1")
|
||||||
var isEnabled: Boolean = true,
|
var isEnabled: Boolean = true,
|
||||||
|
|||||||
Reference in New Issue
Block a user