feat: 优化

pull/201/head
kunfei 5 years ago
parent 79c1281f8c
commit 7c23e54250
  1. 4
      app/src/main/java/io/legado/app/data/AppDatabase.kt

@ -36,7 +36,9 @@ abstract class AppDatabase : RoomDatabase() {
database.execSQL("DROP TABLE txtTocRules")
database.execSQL(
"""
CREATE TABLE txtTocRules(id INTEGER NOT NULL, name TEXT NOT NULL, rule TEXT NOT NULL, serialNumber INTEGER NOT NULL, enable INTEGER NOT NULL, PRIMARY KEY (id))
CREATE TABLE txtTocRules(id INTEGER NOT NULL,
name TEXT NOT NULL, rule TEXT NOT NULL, serialNumber INTEGER NOT NULL,
enable INTEGER NOT NULL, PRIMARY KEY (id))
"""
)
}

Loading…
Cancel
Save