You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// TODO: if we had knowledge about the entire schema, we
15
+
// could be more precise here and actually navigate the
16
+
// foreign keys.
17
+
ctx.report(Violation::new(
18
+
Rule::BanTruncateCascade,
19
+
format!("Using `CASCADE` will recursively truncate any tables that foreign key to the referenced tables! So if you had foreign keys setup as `a <- b <- c` and truncated `a`, then `b` & `c` would also be truncated!"),
20
+
cascade.text_range(),
21
+
"Remove the `CASCADE` and specify exactly which tables you want to truncate.".to_string(),
0 commit comments