From 7d1f8d98d977b5b22787bb7c71d37edadbf124ae Mon Sep 17 00:00:00 2001 From: Dakota Brink Date: Wed, 18 Dec 2024 14:58:10 -0500 Subject: [PATCH] adjust default --- xmtp_mls/migrations/2024-12-18-170645_add_dm_id/up.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmtp_mls/migrations/2024-12-18-170645_add_dm_id/up.sql b/xmtp_mls/migrations/2024-12-18-170645_add_dm_id/up.sql index 88de8b3cc..fdf925049 100644 --- a/xmtp_mls/migrations/2024-12-18-170645_add_dm_id/up.sql +++ b/xmtp_mls/migrations/2024-12-18-170645_add_dm_id/up.sql @@ -1,5 +1,5 @@ ALTER TABLE groups ADD COLUMN dm_id TEXT; -ALTER TABLE groups ADD COLUMN last_message_ns BIGINT NOT NULL DEFAULT (created_at_ns); +ALTER TABLE groups ADD COLUMN last_message_ns BIGINT NOT NULL DEFAULT ((strftime('%s', 'now') * 1000000000) + (strftime('%f', 'now') * 1000000)); -- Fill the dm_id column UPDATE groups