From 06760e5639fe5ce120769863a85d3570ba8f2889 Mon Sep 17 00:00:00 2001 From: Lindsey Cheng Date: Mon, 2 Sep 2024 12:47:56 +0800 Subject: [PATCH] fix: Add the created column in store table Add the created column in store table to save the stored object created timestamp. Signed-off-by: Lindsey Cheng --- res/db/sql/01-tables.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/res/db/sql/01-tables.sql b/res/db/sql/01-tables.sql index 99558e63..431d4966 100644 --- a/res/db/sql/01-tables.sql +++ b/res/db/sql/01-tables.sql @@ -6,5 +6,6 @@ -- app_svc.store is used to save StoredObject as JSONB on failure CREATE TABLE IF NOT EXISTS app_svc.store ( id UUID PRIMARY KEY, + created timestamp NOT NULL DEFAULT now(), content JSONB NOT NULL );