]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
remove AcctStartDelay.
authorAlan T. DeKok <aland@freeradius.org>
Mon, 12 Aug 2024 01:32:24 +0000 (21:32 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 12 Aug 2024 01:35:00 +0000 (21:35 -0400)
it hasn't ever been used, either.

raddb/mods-config/sql/main/mssql/queries.conf
raddb/mods-config/sql/main/mssql/schema.sql
raddb/mods-config/sql/main/oracle/queries.conf

index ce8cf1e73b1370de8f2312139c3de628e63546ed..0fe731ec1b9fe75e8ba6f0899b049dd9c74c7153 100644 (file)
@@ -175,7 +175,6 @@ accounting {
                                FramedIPv6Prefix, \
                                FramedInterfaceId, \
                                DelegatedIPv6Prefix, \
-                               AcctStartDelay, \
                                Class) \
                        VALUES(\
                                '%{Acct-Session-Id}', \
@@ -202,15 +201,12 @@ accounting {
                                '%{Framed-IPv6-Prefix}', \
                                '%{Framed-Interface-Id}', \
                                '%{Delegated-IPv6-Prefix}', \
-                               '%{Acct-Delay-Time}', \
-                               '0', \
                                '%{Class}')"
 
                query = "\
                        UPDATE ${...acct_table1} \
                        SET \
                                AcctStartTime = ${...event_timestamp}, \
-                               AcctStartDelay = '%{&Acct-Delay-Time || 0}', \
                                ConnectInfo_start = '%{Connect-Info}' \
                        WHERE AcctUniqueId = '%{Acct-Unique-Session-ID}' \
                        AND AcctStopTime = 0"
@@ -259,7 +255,6 @@ accounting {
                                FramedIPv6Prefix, \
                                FramedInterfaceId, \
                                DelegatedIPv6Prefix, \
-                               AcctStartDelay, \
                                Class) \
                        VALUES(\
                                '%{Acct-Session-Id}', \
@@ -285,7 +280,6 @@ accounting {
                                '%{Framed-IPv6-Prefix}', \
                                '%{Framed-Interface-Id}', \
                                '%{Delegated-IPv6-Prefix}', \
-                               '0' \
                                '%{Class}')"
        }
 
@@ -329,7 +323,6 @@ accounting {
                                FramedIPv6Prefix, \
                                FramedInterfaceId, \
                                DelegatedIPv6Prefix, \
-                               AcctStartDelay, \
                                Class) \
                        VALUES(\
                                '%{Acct-Session-Id}', \
@@ -357,7 +350,6 @@ accounting {
                                '%{Framed-IPv6-Prefix}', \
                                '%{Framed-Interface-Id}', \
                                '%{Delegated-IPv6-Prefix}', \
-                               '0', \
                                '%{Class}')"
        }
 }
index e72a01714803e70a24fa2030884e9524047f04a3..0a51a7441831c637b47c2255a804b28e0c525c75 100644 (file)
@@ -1,6 +1,6 @@
 -- $Id$d$
 --
--- schela.sql   rlm_sql - FreeRADIUS SQL Module
+-- schema.sql   rlm_sql - FreeRADIUS SQL Module
 --
 -- Database schema for MSSQL rlm_sql module
 --
@@ -47,7 +47,6 @@ CREATE TABLE [radacct] (
        [FramedIPv6Prefix] [varchar] (45) NOT NULL,
        [FramedInterfaceId] [varchar] (44) NOT NULL,
        [DelegatedIPv6Prefix] [varchar] (45) NOT NULL,
-       [AcctStartDelay] [int] NULL,
        [Class] [varchar] (64) NULL
 ) ON [PRIMARY]
 GO
@@ -80,7 +79,6 @@ ALTER TABLE [radacct] WITH NOCHECK ADD
        CONSTRAINT [DF_radacct_FramedIPv6Prefix] DEFAULT ('') FOR [FramedIPv6Prefix],
        CONSTRAINT [DF_radacct_FramedInterfaceId] DEFAULT ('') FOR [FramedInterfaceId],
        CONSTRAINT [DF_radacct_DelegatedIPv6Prefix] DEFAULT ('') FOR [DelegatedIPv6Prefix],
-       CONSTRAINT [DF_radacct_AcctStartDelay] DEFAULT (null) FOR [AcctStartDelay],
        CONSTRAINT [DF_radacct_Class] DEFAULT (null) FOR [Class],
        CONSTRAINT [PK_radacct] PRIMARY KEY NONCLUSTERED
        (
index b5b2f92e90f994d4d51c4d4ebb31158e4914b6ae..81a2f11b58d03a15d8b51b5f22af4a0278d91351 100644 (file)
@@ -181,7 +181,6 @@ accounting {
                                FramedIPv6Prefix, \
                                FramedInterfaceId, \
                                DelegatedIPv6Prefix, \
-                               AcctStartDelay, \
                                Class) \
                        VALUES(\
                                '', \
@@ -210,14 +209,12 @@ accounting {
                                '%{Framed-IPv6-Prefix}', \
                                '%{Framed-Interface-Id}', \
                                '%{Delegated-IPv6-Prefix}', \
-                               '%{Acct-Delay-Time}', \
                                '%{Class}')"
 
                query = "\
                        UPDATE ${...acct_table1} \
                        SET \
                                AcctStartTime = ${...event_timestamp}, \
-                               AcctStartDelay = '%{&Acct-Delay-Time || 0}', \
                                ConnectInfo_start = '%{Connect-Info}' \
                        WHERE AcctUniqueId = '%{Acct-Unique-Session-ID}' \
                        AND AcctStopTime IS NULL"
@@ -260,7 +257,6 @@ accounting {
                                ServiceType, \
                                FramedProtocol, \
                                FramedIPAddress, \
-                               AcctStartDelay, \
                                Class) \
                        VALUES(\
                                '', \
@@ -282,7 +278,6 @@ accounting {
                                '%{Service-Type}', \
                                '%{Framed-Protocol}', \
                                '%{Framed-IP-Address}', \
-                               '0', \
                                '%{Class}')"
        }
 
@@ -324,7 +319,6 @@ accounting {
                                ServiceType, \
                                FramedProtocol, \
                                FramedIPAddress, \
-                               AcctStartDelay, \
                                Class) \
                        VALUES(\
                                '', \
@@ -350,8 +344,6 @@ accounting {
                                '%{Service-Type}', \
                                '%{Framed-Protocol}', \
                                '%{Framed-IP-Address}', \
-                               '0', \
-                               '%{&Acct-Delay-Time || 0}', \
                                '%{Class}')"
        }
 }