From: Alan T. DeKok Date: Thu, 22 Oct 2020 14:37:02 +0000 (-0400) Subject: use "text" instead of "varchar". X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=27a6cfecbb0f3cb66385c3d04dde81203602c58b;p=thirdparty%2Ffreeradius-server.git use "text" instead of "varchar". there's no reason to fix these fields at a small size --- diff --git a/raddb/mods-config/sql/ippool/postgresql/schema.sql b/raddb/mods-config/sql/ippool/postgresql/schema.sql index 5be573e18cb..797c0129e9c 100644 --- a/raddb/mods-config/sql/ippool/postgresql/schema.sql +++ b/raddb/mods-config/sql/ippool/postgresql/schema.sql @@ -7,11 +7,11 @@ CREATE TABLE radippool ( id BIGSERIAL PRIMARY KEY, - pool_name varchar(64) NOT NULL, + pool_name text NOT NULL, FramedIPAddress INET NOT NULL, - NASIPAddress VARCHAR(16) NOT NULL default '', - pool_key VARCHAR(64) NOT NULL default '0', - CalledStationId VARCHAR(64) NOT NULL default '', + NASIPAddress text NOT NULL default '', + pool_key text NOT NULL default '0', + CalledStationId text NOT NULL default '', CallingStationId text NOT NULL default ''::text, expiry_time TIMESTAMP(0) without time zone NOT NULL default NOW(), username text NOT NULL DEFAULT ''::text