]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
use "text" instead of "varchar".
authorAlan T. DeKok <aland@freeradius.org>
Thu, 22 Oct 2020 14:37:02 +0000 (10:37 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 22 Oct 2020 14:48:27 +0000 (10:48 -0400)
there's no reason to fix these fields at a small size

raddb/mods-config/sql/ippool/postgresql/schema.sql

index 5be573e18cbebb422064a42eeb8b04efb04e8baf..797c0129e9cdd22992ef45204c9d18946587ae44 100644 (file)
@@ -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