更新默认Txt目录规则 Txt目录正则页面增加标题示例 新增部分翻译

This commit is contained in:
fisher
2022-08-05 00:51:35 +08:00
parent a95bdfe5f6
commit 2157c84f8f
7 changed files with 1768 additions and 53 deletions
@@ -20,7 +20,7 @@ val appDb by lazy {
}
@Database(
version = 51,
version = 52,
exportSchema = true,
entities = [Book::class, BookGroup::class, BookSource::class, BookChapter::class,
ReplaceRule::class, SearchBook::class, SearchKeyword::class, Cookie::class,
@@ -35,7 +35,8 @@ val appDb by lazy {
AutoMigration(from = 47, to = 48),
AutoMigration(from = 48, to = 49),
AutoMigration(from = 49, to = 50),
AutoMigration(from = 50, to = 51)
AutoMigration(from = 50, to = 51),
AutoMigration(from = 51, to = 52)
]
)
abstract class AppDatabase : RoomDatabase() {
@@ -48,7 +48,7 @@ object DatabaseMigrations {
database.execSQL("DROP TABLE txtTocRules")
database.execSQL(
"""CREATE TABLE txtTocRules(id INTEGER NOT NULL,
name TEXT NOT NULL, rule TEXT NOT NULL,example TEXT DEFAULT NULL, serialNumber INTEGER NOT NULL,
name TEXT NOT NULL, rule TEXT NOT NULL, serialNumber INTEGER NOT NULL,
enable INTEGER NOT NULL, PRIMARY KEY (id))"""
)
}