替换规则添加排除字段

This commit is contained in:
kunfei
2023-05-10 20:58:45 +08:00
parent 30d82ae6a9
commit 95a07cf6ef
3 changed files with 1890 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 = 67,
version = 68,
exportSchema = true,
entities = [Book::class, BookGroup::class, BookSource::class, BookChapter::class,
ReplaceRule::class, SearchBook::class, SearchKeyword::class, Cookie::class,
@@ -52,7 +52,8 @@ val appDb by lazy {
AutoMigration(from = 63, to = 64),
AutoMigration(from = 64, to = 65, spec = DatabaseMigrations.Migration_64_65::class),
AutoMigration(from = 65, to = 66),
AutoMigration(from = 66, to = 67)
AutoMigration(from = 66, to = 67),
AutoMigration(from = 67, to = 68)
]
)
abstract class AppDatabase : RoomDatabase() {

View File

@@ -40,6 +40,8 @@ data class ReplaceRule(
//作用于正文
@ColumnInfo(defaultValue = "1")
var scopeContent: Boolean = true,
//排除范围
var excludeScope: String? = null,
//是否启用
@ColumnInfo(defaultValue = "1")
var isEnabled: Boolean = true,