From 929d05a761409a564cfb89518190f408a86dbf1f Mon Sep 17 00:00:00 2001
From: Henrik Thostrup Jensen <htj@nordu.net>
Date: Thu, 7 Jan 2016 14:31:19 +0100
Subject: [PATCH] allow null in for start and end time in db schema

---
 datafiles/schema.sql | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/datafiles/schema.sql b/datafiles/schema.sql
index ad8d25f5..c8cca318 100644
--- a/datafiles/schema.sql
+++ b/datafiles/schema.sql
@@ -39,8 +39,8 @@ CREATE TABLE service_connections (
     dest_network            text                        NOT NULL,
     dest_port               text                        NOT NULL,
     dest_label              label,
-    start_time              timestamp,                            -- null = now
-    end_time                timestamp                   NOT NULL,
+    start_time              timestamp,                            -- null = immediate start
+    end_time                timestamp,                            -- null = forever
     symmetrical             boolean                     NOT NULL,
     directionality          directionality              NOT NULL,
     bandwidth               integer                     NOT NULL, -- mbps
@@ -92,8 +92,8 @@ CREATE TABLE generic_backend_connections (
     dest_network            text                        NOT NULL,
     dest_port               text                        NOT NULL,
     dest_label              label,
-    start_time              timestamp                   NOT NULL,
-    end_time                timestamp                   NOT NULL,
+    start_time              timestamp,                            -- null = immediate start
+    end_time                timestamp,                            -- null = forever
     symmetrical             boolean                     NOT NULL,
     directionality          directionality              NOT NULL,
     bandwidth               integer                     NOT NULL, -- mbps
-- 
GitLab