]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3681] destroySchema is now working properly.
authorTomek Mrugalski <tomasz@isc.org>
Fri, 26 Jun 2015 09:56:50 +0000 (11:56 +0200)
committerTomek Mrugalski <tomasz@isc.org>
Fri, 26 Jun 2015 09:56:50 +0000 (11:56 +0200)
src/lib/dhcpsrv/tests/schema_mysql_copy.h

index 3914b99dda43f121d76b47f0befcbac1d8fdf137..5e60fe3262f4f3af3978637b98ff2933e09d72bc 100755 (executable)
@@ -37,10 +37,14 @@ const char* destroy_statement[] = {
     "DROP TABLE lease6_types",
     "DROP TABLE lease_hwaddr_source",
     "DROP TABLE schema_version",
+
+    // We need to drop ipv6_reservations before hosts, as it has constrains
+    // that depend on hosts. Therefore hosts table cannot be deleted while
+    // ipv6_reservations exists.
+    "DROP TABLE ipv6_reservations",
     "DROP TABLE hosts",
     "DROP TABLE dhcp4_options",
     "DROP TABLE dhcp6_options",
-    "DROP TABLE ipv6_reservations",
     NULL
 };