From e1c01260e0bcd1d7e02352e2268f55b91d1772ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20M=C3=B6rbitz?= Date: Sat, 26 Jan 2019 10:39:24 +0100 Subject: [PATCH] schema: allow NULL values for UserName in foreign --- templates/schema_fdw.sql.j2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/schema_fdw.sql.j2 b/templates/schema_fdw.sql.j2 index cf4d8fd3..cf59012e 100644 --- a/templates/schema_fdw.sql.j2 +++ b/templates/schema_fdw.sql.j2 @@ -91,7 +91,7 @@ ALTER TABLE nas OWNER TO "{{ constants.DATABASE_USER }}"; CREATE TABLE radcheck ( "Priority" integer NOT NULL, - "UserName" text NOT NULL, + "UserName" text, {% if HADES_POSTGRESQL_FOREIGN_TABLE_RADCHECK_NASIPADDRESS_STRING %} "NASIPAddress" text, {% else %} @@ -142,7 +142,7 @@ ALTER TABLE radgroupreply OWNER TO "{{ constants.DATABASE_USER }}"; CREATE TABLE radreply ( "Priority" integer NOT NULL, - "UserName" text NOT NULL, + "UserName" text, {% if HADES_POSTGRESQL_FOREIGN_TABLE_RADREPLY_NASIPADDRESS_STRING %} "NASIPAddress" text, {% else %} @@ -162,7 +162,7 @@ ALTER TABLE radreply OWNER TO "{{ constants.DATABASE_USER }}"; -- CREATE TABLE radusergroup ( - "UserName" text NOT NULL, + "UserName" text, {% if HADES_POSTGRESQL_FOREIGN_TABLE_RADUSERGROUP_NASIPADDRESS_STRING %} "NASIPAddress" text, {% else %}