]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
fixed cql create db script
authorRazvan Becheriu <razvan.becheriu@qualitance.com>
Fri, 15 Dec 2017 14:28:46 +0000 (16:28 +0200)
committerRazvan Becheriu <razvan.becheriu@qualitance.com>
Fri, 15 Dec 2017 14:28:46 +0000 (16:28 +0200)
src/share/database/scripts/cql/dhcpdb_create.cql

index 49f242ab0d2896e24bab5dd9de269bb7f420ed72..7c8c36f7bef16215943bd9ec4f7d7a50c5016ae8 100644 (file)
@@ -185,48 +185,3 @@ CREATE TABLE IF NOT EXISTS schema_version (
 INSERT INTO schema_version (version, minor) VALUES (1, 0);
 
 -- This line concludes database initialization to version 1.0.
-
--- This line starts database upgrade to version 2.0
-
--- -----------------------------------------------------
--- Table `host_reservations`
--- -----------------------------------------------------
-CREATE TABLE IF NOT EXISTS host_reservations (
-    host_identifier blob,
-    host_identifier_type int,
-    host_ipv4_subnet_id int,
-    host_ipv6_subnet_id int,
-    host_ipv4_address int,
-    hostname text,
-    host_ipv4_client_classes text,
-    host_ipv6_client_classes text,
-    -- reservation
-    reserved_ipv6_prefix_address text,
-    reserved_ipv6_prefix_length int,
-    reserved_ipv6_prefix_address_type int,
-    iaid int,
-    -- option
-    option_universe int,
-    option_code int,
-    option_value blob,
-    option_formatted_value text,
-    option_space text,
-    option_is_persistent boolean,
-    option_client_class text,
-    option_subnet_id int,
-    id bigint,
-    PRIMARY KEY ((id))
-);
-
-CREATE INDEX IF NOT EXISTS host_reservationsindex1 ON host_reservations (host_identifier);
-CREATE INDEX IF NOT EXISTS host_reservationsindex2 ON host_reservations (host_identifier_type);
-CREATE INDEX IF NOT EXISTS host_reservationsindex3 ON host_reservations (host_ipv4_subnet_id);
-CREATE INDEX IF NOT EXISTS host_reservationsindex4 ON host_reservations (host_ipv6_subnet_id);
-CREATE INDEX IF NOT EXISTS host_reservationsindex5 ON host_reservations (host_ipv4_address);
-CREATE INDEX IF NOT EXISTS host_reservationsindex6 ON host_reservations (reserved_ipv6_prefix_address);
-CREATE INDEX IF NOT EXISTS host_reservationsindex7 ON host_reservations (reserved_ipv6_prefix_length);
-
-TRUNCATE SCHEMA_VERSION;
-INSERT INTO schema_version (version, minor) VALUES(2, 0);
-
--- This line concludes database upgrade to version 2.0