Updated nas table. This is not currently used but FreeRADIUS but is usefull for repor...
authorpnixon <pnixon>
Sat, 12 Jul 2003 13:32:15 +0000 (13:32 +0000)
committerpnixon <pnixon>
Sat, 12 Jul 2003 13:32:15 +0000 (13:32 +0000)
src/modules/rlm_sql/drivers/rlm_sql_postgresql/db_postgresql.sql

index 80a035c..4cf2f19 100644 (file)
@@ -28,17 +28,20 @@ CREATE TABLE dictionary (
 
 /*
  * Table structure for table 'nas'
+ * This is not currently used but FreeRADIUS but is usefull for reporting
+ * anyway.
  */
 CREATE TABLE nas (
   id SERIAL PRIMARY KEY,
   nasname VARCHAR(128),
-  shortname VARCHAR(32),
-  ipaddr VARCHAR(15),
+  shortname VARCHAR(32) NOT NULL,
+  ipaddr inet NOT NULL,
   type VARCHAR(30),
   ports int4,
-  secret VARCHAR(60),
+  secret VARCHAR(60) NOT NULL,
   community VARCHAR(50),
-  snmp VARCHAR(10)
+  snmp VARCHAR(10),
+  naslocation VARCHAR(32)
 );
 
 /*