mod_storage_sql: Drop archive timestamp precision pending schema update
The "when" column is an INTEGER which will probably be unhappy about
storing higher precision timestamps, so we keep the older behavior for
now.
--- a/plugins/mod_storage_sql.lua Sun Aug 14 17:28:31 2022 +0200
+++ b/plugins/mod_storage_sql.lua Sun Aug 14 17:29:39 2022 +0200
@@ -321,7 +321,8 @@
end
end
- when = when or os.time();
+ -- FIXME update the schema to allow precision timestamps
+ when = when and math.floor(when) or os.time();
with = with or "";
local ok, ret = engine:transaction(function()
local delete_sql = [[