Add default TTL to the messages DB table

This commit is contained in:
2025-08-14 13:09:05 -03:00
parent 634c8eff8c
commit 09ed3b870e
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ CREATE TYPE IF NOT EXISTS payphone.message (
is_deleted BOOLEAN, is_deleted BOOLEAN,
is_edited BOOLEAN, is_edited BOOLEAN,
is_censored BOOLEAN, is_censored BOOLEAN,
); ) WITH default_time_to_live = 2592000; -- 30 days
-- TTL 30 days. -- TTL 30 days.
CREATE TABLE IF NOT EXISTS payphone.messages ( CREATE TABLE IF NOT EXISTS payphone.messages (
@@ -45,3 +45,5 @@ pedo
pdf pdf
pdfile pdfile
blackie blackie
motherfucker
mf