Skip to content

Fix nullable column divergence#9940

Open
smklein wants to merge 18 commits intomainfrom
fix-nullability-drift
Open

Fix nullable column divergence#9940
smklein wants to merge 18 commits intomainfrom
fix-nullability-drift

Conversation

@smklein
Copy link
Collaborator

@smklein smklein commented Feb 27, 2026

Aligns the time_modified columns of the virtual_provisioning tables to match between Diesel and the underlying SQL schema.

This PR, run with EXPECTORATE=true, made the nexus/tests/output/schema_nullable_exceptions.txt file empty. As a follow-up, to prevent further exceptions, I also edited nexus/tests/integration_tests/schema.rs to avoid emitting the file altogether.

Part of #9925

@smklein smklein marked this pull request as ready for review February 27, 2026 18:42
Base automatically changed from crdb-alignment to main March 3, 2026 00:33
// This type isn't actually "Nullable" - it's just handy to use the
// same type for insertion and querying, and doing so requires this
// field to appear optional so we can let this (default) field appear
// optional.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we remove the DEFAULT NOW() on these two columns in the schema?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 09d4f21

@smklein smklein enabled auto-merge (squash) March 3, 2026 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants