From: Tomek Mrugalski Date: Fri, 26 Jun 2015 09:56:50 +0000 (+0200) Subject: [3681] destroySchema is now working properly. X-Git-Tag: trac3874_base~33^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c0253f37eed2bd49a5f6a277983def02333742a;p=thirdparty%2Fkea.git [3681] destroySchema is now working properly. --- diff --git a/src/lib/dhcpsrv/tests/schema_mysql_copy.h b/src/lib/dhcpsrv/tests/schema_mysql_copy.h index 3914b99dda..5e60fe3262 100755 --- a/src/lib/dhcpsrv/tests/schema_mysql_copy.h +++ b/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 };