From 42d325a04365e7894cc61782da27fd330cf3f2e2 Mon Sep 17 00:00:00 2001
From: Sonia Zorba <sonia.zorba@inaf.it>
Date: Wed, 27 Jan 2021 14:10:42 +0100
Subject: [PATCH] Set location_id default value to null

---
 00-init.sql | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/00-init.sql b/00-init.sql
index aa6857a..0f8e43d 100644
--- a/00-init.sql
+++ b/00-init.sql
@@ -40,7 +40,7 @@ CREATE TABLE node (
     os_name                VARCHAR       default NULL,
     tstamp_wrapper_dir     VARCHAR       default NULL,
     type                   NodeType      NOT NULL,
-    location_id            SMALLINT      NOT NULL,
+    location_id            SMALLINT      default NULL,
     format                 VARCHAR       default NULL,
     -- format is used to distinguish between unstuctured (format=NULL) and structured nodes having a well defined format
     async_trans            BOOLEAN       default false,
-- 
GitLab