Simplify db migration toasts (#7063)

xref https://www.mobileread.com/forums/showpost.php?p=4073920&postcount=17
This commit is contained in:
NiLuJe
2020-12-27 03:23:08 +01:00
committed by GitHub
parent 12d1604a75
commit 0685eecdad
2 changed files with 2 additions and 2 deletions

View File

@@ -178,7 +178,7 @@ function BookInfoManager:createDB()
db_conn:exec(string.format("PRAGMA user_version=%d;", BOOKINFO_DB_VERSION))
-- Say hi!
UIManager:show(InfoMessage:new{text =_("BookInfo cache database schema updated."), timeout = 3 })
UIManager:show(InfoMessage:new{text =_("Book info cache database updated."), timeout = 3 })
end
db_conn:close()
self.db_created = true

View File

@@ -333,7 +333,7 @@ Do you want to create an empty database?
end
logger.info("ReaderStatistics: DB migration complete")
UIManager:show(InfoMessage:new{text =_("Statistics database schema updated."), timeout = 3 })
UIManager:show(InfoMessage:new{text =_("Statistics database updated."), timeout = 3 })
elseif db_version > DB_SCHEMA_VERSION then
logger.warn("ReaderStatistics: You appear to be using a database with an unknown schema version:", db_version, "instead of", DB_SCHEMA_VERSION)
logger.warn("ReaderStatistics: Expect things to break in fun and interesting ways!")