diff --git a/bin/smeti_db.inc.php b/bin/smeti_db.inc.php index a9a4389..2da34c3 100644 --- a/bin/smeti_db.inc.php +++ b/bin/smeti_db.inc.php @@ -81,7 +81,6 @@ class SMETI_db { $select_clause="SELECT id FROM plugins WHERE libelle = '$plugin_name'"; // Parce que je n'ai pas réussi à faire correctement marcher le DELETE CASCADE ! - self::$pdo->exec("DELETE FROM nodes WHERE parent IN (SELECT DISTINCT id FROM items WHERE plugin IN ( $select_clause ))"); self::$pdo->exec("DELETE FROM nodes WHERE child IN (SELECT DISTINCT id FROM items WHERE plugin IN ( $select_clause ))"); self::$pdo->exec("DELETE FROM links WHERE item IN (SELECT DISTINCT id FROM items WHERE plugin IN ( $select_clause ))"); self::$pdo->exec("DELETE FROM links WHERE link = 1 AND id IN ( SELECT id FROM v_items_tree WHERE parent IS NULL)");