From c3ae199b0b480b0e530c3a932e20916c3a46fe4f Mon Sep 17 00:00:00 2001
From: Nicola Fulvio Calabria <nicola.calabria@inaf.it>
Date: Fri, 27 Aug 2021 17:01:16 +0200
Subject: [PATCH] added target property for link nodes to nodes and
 deleted_nodes tables

---
 00-tables.sql | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/00-tables.sql b/00-tables.sql
index 8ae83c5..1ae937d 100644
--- a/00-tables.sql
+++ b/00-tables.sql
@@ -42,7 +42,9 @@ CREATE TABLE node (
     tstamp_wrapper_dir     VARCHAR       default NULL,
     type                   NodeType      NOT NULL,
     location_id            SMALLINT      default NULL,
-    -- format is used to distinguish between unstuctured (format=NULL) and structured nodes having a well defined format
+    -- target URI for link nodes
+    target                 VARCHAR       default NULL,
+   -- format is used to distinguish between unstuctured (format=NULL) and structured nodes having a well defined format
     format                 VARCHAR       default NULL,
     -- async_trans tells us whether a node is hosted on a cold storage and has to be transferred asynchronously
     async_trans            BOOLEAN       default false,
@@ -80,6 +82,8 @@ CREATE TABLE deleted_node (
     tstamp_wrapper_dir     VARCHAR       default NULL,
     type                   NodeType      NOT NULL,
     location_id            SMALLINT      default NULL,
+    -- target URI for link nodes
+    target                 VARCHAR       default NULL,
     -- format is used to distinguish between unstuctured (format=NULL) and structured nodes having a well defined format
     format                 VARCHAR       default NULL,
     -- async_trans tells us whether a node is hosted on a cold storage and has to be transferred asynchronously
-- 
GitLab