From 2849c8ed716ef3e3f5990f422d1edb04bcb3906e Mon Sep 17 00:00:00 2001 From: Sonia Zorba <sonia.zorba@inaf.it> Date: Wed, 23 Jun 2021 12:25:24 +0200 Subject: [PATCH] Removed delta column and added quota column; minor cleanup --- 00-tables.sql | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/00-tables.sql b/00-tables.sql index baa1957..f7b9820 100644 --- a/00-tables.sql +++ b/00-tables.sql @@ -53,20 +53,16 @@ CREATE TABLE node ( group_read VARCHAR[] default NULL, group_write VARCHAR[] default NULL, is_public BOOLEAN default NULL, - delta BIGINT default NULL, - /* it may be a delta of data which is transferred through an asynchronous transfer. - It should stay on the transfer service (e.g. Redis) */ + quota BIGINT default NULL, + -- total container quota (in bytes) content_type VARCHAR default NULL, content_encoding VARCHAR default NULL, content_length BIGINT default NULL, content_md5 TEXT default NULL, created_on TIMESTAMP default CURRENT_TIMESTAMP, last_modified TIMESTAMP default NULL, - -- link TEXT default NULL, accept_views TEXT[] default NULL, provide_views TEXT[] default NULL, - -- storage service mapping used to access the content of this node - -- storage_id VARCHAR, protocols TEXT[] default NULL, PRIMARY KEY (node_id), FOREIGN KEY (location_id) REFERENCES location (location_id) @@ -94,20 +90,16 @@ CREATE TABLE deleted_node ( group_read VARCHAR[] default NULL, group_write VARCHAR[] default NULL, is_public BOOLEAN default NULL, - delta BIGINT default NULL, - /* it may be a delta of data which is transferred through an asynchronous transfer. - It should stay on the transfer service (e.g. Redis) */ + quota BIGINT default NULL, + -- total container quota (in bytes) content_type VARCHAR default NULL, content_encoding VARCHAR default NULL, content_length BIGINT default NULL, content_md5 TEXT default NULL, created_on TIMESTAMP default NULL, last_modified TIMESTAMP default NULL, - -- link TEXT default NULL, accept_views TEXT[] default NULL, provide_views TEXT[] default NULL, - -- storage service mapping used to access the content of this node - -- storage_id VARCHAR, protocols TEXT[] default NULL, -- add a deleted_on timestamp to keep track deleted_on TIMESTAMP default CURRENT_TIMESTAMP, -- GitLab