From 89cd3fe1966dee5955305d422c53e7903a183ad1 Mon Sep 17 00:00:00 2001 From: rajajisai Date: Tue, 19 Aug 2025 21:49:04 -0400 Subject: [PATCH] `notnull` is now set based on the `nullable` field instead of being hardcoded. --- core/schema.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/schema.rs b/core/schema.rs index 90c511bfb..c5b0cfb7e 100644 --- a/core/schema.rs +++ b/core/schema.rs @@ -931,8 +931,10 @@ fn create_table( order = o; } } - turso_sqlite3_parser::ast::ColumnConstraint::NotNull { .. } => { - notnull = true; + turso_sqlite3_parser::ast::ColumnConstraint::NotNull { + nullable, .. + } => { + notnull = !nullable; } turso_sqlite3_parser::ast::ColumnConstraint::Default(expr) => { default = Some(expr)