We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f1e4e4d + 585318d commit cb04fe4Copy full SHA for cb04fe4
src/bin/delete-crate.rs
@@ -78,6 +78,16 @@ fn delete(tx: &postgres::transaction::Transaction) {
78
&[&krate.id]).unwrap();
79
println!(" {} deleted", n);
80
81
+ println!("deleting crate category connections");
82
+ let n = tx.execute("DELETE FROM crates_categories WHERE crate_id = $1",
83
+ &[&krate.id]).unwrap();
84
+ println!(" {} deleted", n);
85
+
86
+ println!("deleting crate badges");
87
+ let n = tx.execute("DELETE FROM badges WHERE crate_id = $1",
88
89
90
91
println!("deleting the crate");
92
let n = tx.execute("DELETE FROM crates WHERE id = $1",
93
0 commit comments