]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#2867] Made binaddr index ascending
authorFrancis Dupont <fdupont@isc.org>
Sun, 21 May 2023 12:42:31 +0000 (14:42 +0200)
committerFrancis Dupont <fdupont@isc.org>
Mon, 22 May 2023 20:05:00 +0000 (22:05 +0200)
src/share/database/scripts/mysql/dhcpdb_create.mysql
src/share/database/scripts/mysql/upgrade_017_to_018.sh.in
src/share/database/scripts/pgsql/dhcpdb_create.pgsql
src/share/database/scripts/pgsql/upgrade_016_to_017.sh.in

index b1eb357aebbd329894588d96614ab34b5bbcea68..d64bff6a5df0ea3a498282fe4025fc752f9fdb39 100644 (file)
@@ -5303,7 +5303,7 @@ DELIMITER ;
 -- Add the binary version of the IPv6 address for v6 BLQ prefix filter.
 ALTER TABLE lease6
     ADD COLUMN binaddr BINARY(16) DEFAULT NULL;
-CREATE INDEX lease6_by_binaddr ON lease6 (binaddr);
+CREATE INDEX lease6_by_binaddr ON lease6 (binaddr ASC);
 
 -- Create table for v6 BLQ by-relay-id.
 CREATE TABLE lease6_relay_id (
index ae53ffa8b4218cd3edb05df314b57f4815ba30fe..95924119d24663dcae15c5134516849fd46dc200 100644 (file)
@@ -191,7 +191,7 @@ DELIMITER ;
 -- Add the binary version of the IPv6 address for v6 BLQ prefix filter.
 ALTER TABLE lease6
     ADD COLUMN binaddr BINARY(16) DEFAULT NULL;
-CREATE INDEX lease6_by_binaddr ON lease6 (binaddr);
+CREATE INDEX lease6_by_binaddr ON lease6 (binaddr ASC);
 
 -- Create table for v6 BLQ by-relay-id.
 CREATE TABLE lease6_relay_id (
index cee8e730e247533cd68d6f01f968a19ce26fafb0..0b20665a9bc9033ebca82db4d4a8d16d3360121a 100644 (file)
@@ -5640,6 +5640,7 @@ UPDATE lease6 SET duid = E'\\x000000' WHERE duid = E'\\x00';
 -- Add the binary version of the IPv6 address for v6 BLQ prefix filter.
 ALTER TABLE lease6
     ADD COLUMN binaddr BYTEA DEFAULT NULL;
+CREATE INDEX lease6_by_binaddr ON lease6 (binaddr ASC);
 
 -- Create table for v6 BLQ by-relay-id.
 CREATE TABLE lease6_relay_id (
index 72a1db15bc45f9ecb3657fe197f3f502b720fb7d..e84b5cf5f26a4383062eaee26bc17eb4d02632ed 100644 (file)
@@ -43,6 +43,7 @@ UPDATE lease6 SET duid = E'\\\\x000000' WHERE duid = E'\\\\x00';
 -- Add the binary version of the IPv6 address for v6 BLQ prefix filter.
 ALTER TABLE lease6
     ADD COLUMN binaddr BYTEA DEFAULT NULL;
+CREATE INDEX lease6_by_binaddr ON lease6 (binaddr ASC);
 
 -- Create table for v6 BLQ by-relay-id.
 CREATE TABLE lease6_relay_id (