# HG changeset patch # User Kim Alvefur # Date 1660490979 -7200 # Node ID 9524bb7f3944b0cc23e1aeb728771b90095f33d9 # Parent 781772c8b6d99da9213bf83c20ef9517d01afefd 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. diff -r 781772c8b6d9 -r 9524bb7f3944 plugins/mod_storage_sql.lua --- 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 = [[