]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Use correct sqlite syntax for id column
authorNick Porter <nick@portercomputing.co.uk>
Mon, 29 Jan 2024 16:39:55 +0000 (16:39 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Mon, 29 Jan 2024 16:39:55 +0000 (16:39 +0000)
Causes id to refer to internal ROWID column

raddb/mods-config/sql/ippool-dhcp/sqlite/schema.sql
raddb/mods-config/sql/ippool/sqlite/schema.sql

index 339d58d39fdcaca4fafa544e442086921aff4218..f7af667c7476eb0ba8c2d146c6928cb616939c7b 100644 (file)
@@ -9,7 +9,7 @@ CREATE TABLE dhcpstatus (
 INSERT INTO dhcpstatus (status_id, status) VALUES (1, 'dynamic'), (2, 'static'), (3, 'declined'), (4, 'disabled');
 
 CREATE TABLE dhcpippool (
-       id                      int(11) PRIMARY KEY,
+       id                      INTEGER PRIMARY KEY,
        pool_name               varchar(30) NOT NULL,
        framedipaddress         varchar(15) NOT NULL default '',
        pool_key                varchar(30) NOT NULL default '',
index b020c6269562323176943c31ba1d9d3163ddcdd6..4dc25d130ac400ed4705ae2fe3ae207fd70671ce 100644 (file)
@@ -2,7 +2,7 @@
 -- Table structure for table 'radippool'
 --
 CREATE TABLE radippool (
-  id                    int(11) PRIMARY KEY,
+  id                    INTEGER PRIMARY KEY,
   pool_name             varchar(30) NOT NULL,
   framedipaddress       varchar(15) NOT NULL default '',
   nasipaddress          varchar(15) NOT NULL default '',