Skip to content

Commit 4802cf6

Browse files
Update kernel/src/schema/diff.rs
Co-authored-by: OussamaSaoudi <45303303+OussamaSaoudi@users.noreply.github.com>
1 parent 08ad967 commit 4802cf6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

kernel/src/schema/diff.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -522,10 +522,8 @@ fn compute_field_update(
522522
}
523523

524524
// Check for nullability change - distinguish between tightening and loosening
525-
match (before.field.nullable, after.field.nullable) {
526-
(true, false) => changes.push(FieldChangeType::NullabilityTightened), // Breaking
527-
(false, true) => changes.push(FieldChangeType::NullabilityLoosened), // Safe
528-
_ => {} // No change
525+
if let Some(change) = check_container_nullability_change(before.field.nullable, after.field.nullable) {
526+
changes.push(change);
529527
}
530528

531529
// Validate physical name consistency

0 commit comments

Comments
 (0)