From eb6dcb46041263f4ad7eb0343cf7e2e9c6405951 Mon Sep 17 00:00:00 2001 From: Rafael Bradley Date: Thu, 14 Aug 2025 18:25:53 -0300 Subject: [PATCH] Fix misapplied TTL --- src/database/migrations/0001_init.cql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/database/migrations/0001_init.cql b/src/database/migrations/0001_init.cql index 73c7897..c1fcba9 100644 --- a/src/database/migrations/0001_init.cql +++ b/src/database/migrations/0001_init.cql @@ -80,8 +80,8 @@ CREATE TYPE IF NOT EXISTS payphone.message ( is_deleted BOOLEAN, is_edited BOOLEAN, - is_censored BOOLEAN, -) WITH default_time_to_live = 2592000; -- 30 days + is_censored BOOLEAN +); -- TTL 30 days. CREATE TABLE IF NOT EXISTS payphone.messages ( @@ -92,7 +92,7 @@ CREATE TABLE IF NOT EXISTS payphone.messages ( data FROZEN, PRIMARY KEY (call_id, message_id) -); +) WITH default_time_to_live = 2592000; -- 30 days CREATE TABLE IF NOT EXISTS payphone.servers ( server_id BIGINT PRIMARY KEY,