Parcourir la source

[3681] destroySchema is now working properly.

Tomek Mrugalski il y a 10 ans
Parent
commit
5c0253f37e
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. 5 1
      src/lib/dhcpsrv/tests/schema_mysql_copy.h

+ 5 - 1
src/lib/dhcpsrv/tests/schema_mysql_copy.h

@@ -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
 };