mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
@@ -10,7 +10,7 @@ local util = require("util")
|
||||
local _ = require("gettext")
|
||||
|
||||
-- Date at which the last migration snippet was added
|
||||
local CURRENT_MIGRATION_DATE = 20240408
|
||||
local CURRENT_MIGRATION_DATE = 20240616
|
||||
|
||||
-- Retrieve the date of the previous migration, if any
|
||||
local last_migration_date = G_reader_settings:readSetting("last_migration_date", 0)
|
||||
@@ -234,8 +234,9 @@ end
|
||||
|
||||
-- 20210518, ReaderFooter, https://github.com/koreader/koreader/pull/7702
|
||||
-- 20210622, ReaderFooter, https://github.com/koreader/koreader/pull/7876
|
||||
if last_migration_date < 20210622 then
|
||||
logger.info("Performing one-time migration for 20210622")
|
||||
-- 20240616, ReaderFooter, https://github.com/koreader/koreader/pull/11999
|
||||
if last_migration_date < 20240616 then
|
||||
logger.info("Performing one-time migration for 20240616")
|
||||
|
||||
local ReaderFooter = require("apps/reader/modules/readerfooter")
|
||||
local settings = G_reader_settings:readSetting("footer", ReaderFooter.default_settings)
|
||||
|
||||
Reference in New Issue
Block a user