Skip to content

Don't add NOT NULL when transform() drops it from a nullable column - #945

Open
abhishekcpp007 wants to merge 1 commit into
simonw:mainfrom
abhishekcpp007:fix/transform-not-null-false
Open

abhishekcpp007 wants to merge 1 commit into
simonw:mainfrom
abhishekcpp007:fix/transform-not-null-false

Conversation

@abhishekcpp007

@abhishekcpp007 abhishekcpp007 commented Nov 14, 2026 •

Copy link
Copy Markdown

Fixes #944.

not_null={"col": False} on a column that's already nullable fell into the else branch and added NOT NULL. Now False always just discards the column from the set.

Added test_transform_not_null_false_on_nullable_column next to test_transform_remove_a_not_null.


📚 Documentation preview 📚: https://sqlite-utils--945.org.readthedocs.build/en/945/

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.

transform(not_null={"col": False}) adds NOT NULL to a nullable column

1 participant