From 90cda30d490aeb58f50fa66988b1be58f67ac614 Mon Sep 17 00:00:00 2001 From: Gleb Tcivie Date: Mon, 15 Jul 2024 22:34:35 +0300 Subject: [PATCH] Added timestamp colum to client_details --- docker/postgres/init.sql | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker/postgres/init.sql b/docker/postgres/init.sql index 1fd0d0a..7cd9c5a 100644 --- a/docker/postgres/init.sql +++ b/docker/postgres/init.sql @@ -50,3 +50,6 @@ CREATE TABLE IF NOT EXISTS node_neighbors ); CREATE UNIQUE INDEX idx_unique_node_neighbor ON node_neighbors (node_id, neighbor_id); + +ALTER TABLE client_details + ADD COLUMN IF NOT EXISTS created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP;