From 09ed3b870eb954496210b7bc7f0f7108b0664209 Mon Sep 17 00:00:00 2001 From: Rafael Bradley Date: Thu, 14 Aug 2025 13:09:05 -0300 Subject: [PATCH] Add default TTL to the messages DB table --- src/database/migrations/0001_init.cql | 2 +- src/groups/calls/lists/hate-speech-and-slurs.txt | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/database/migrations/0001_init.cql b/src/database/migrations/0001_init.cql index 9fc364c..73c7897 100644 --- a/src/database/migrations/0001_init.cql +++ b/src/database/migrations/0001_init.cql @@ -81,7 +81,7 @@ CREATE TYPE IF NOT EXISTS payphone.message ( is_deleted BOOLEAN, is_edited BOOLEAN, is_censored BOOLEAN, -); +) WITH default_time_to_live = 2592000; -- 30 days -- TTL 30 days. CREATE TABLE IF NOT EXISTS payphone.messages ( diff --git a/src/groups/calls/lists/hate-speech-and-slurs.txt b/src/groups/calls/lists/hate-speech-and-slurs.txt index 6655cef..b5f7ab8 100644 --- a/src/groups/calls/lists/hate-speech-and-slurs.txt +++ b/src/groups/calls/lists/hate-speech-and-slurs.txt @@ -44,4 +44,6 @@ get the fuck out pedo pdf pdfile -blackie \ No newline at end of file +blackie +motherfucker +mf \ No newline at end of file