From 5ed6482400a1e356a2d5c9678902bb03c766d408 Mon Sep 17 00:00:00 2001 From: Gibheer Date: Mon, 3 May 2021 22:38:49 +0200 Subject: [PATCH] the pool_id should be nullable Containers are subnets in vairous ranges. But only when a subnet is assigned a pool, it is truly a subnet. When it is not assigned to a pool, it is considered a container. This serves the purpose of grouping or blocking containers for different purposes, so we need to keep that up. --- schema/01_initial.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema/01_initial.sql b/schema/01_initial.sql index b305827..587bab5 100644 --- a/schema/01_initial.sql +++ b/schema/01_initial.sql @@ -19,7 +19,7 @@ create table if not exists pools( create table if not exists containers( layer3domain_id integer not null references layer3domains(id), network cidr not null, - pool_id integer not null, + pool_id integer, created_at timestamptz not null default now(), created_by varchar(128) not null, modified_at timestamptz not null default now(),