Skip to content

Commit

Permalink
schema: allow NULL values for UserName in foreign
Browse files Browse the repository at this point in the history
  • Loading branch information
Lodifice authored and sebschrader committed Nov 1, 2020
1 parent 6e8b029 commit e1c0126
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/schema_fdw.sql.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down Expand Up @@ -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 %}
Expand All @@ -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 %}
Expand Down

0 comments on commit e1c0126

Please sign in to comment.