From b7fc9fef40e7eeb83866183edec6f3cd12de765b Mon Sep 17 00:00:00 2001 From: PThorpe92 Date: Sat, 27 Sep 2025 13:12:19 -0400 Subject: [PATCH] Persist NOT NULL column constraint to schema table --- core/schema.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/schema.rs b/core/schema.rs index 20ae6380e..2d7c2f8d9 100644 --- a/core/schema.rs +++ b/core/schema.rs @@ -1033,6 +1033,9 @@ impl BTreeTable { sql.push(' '); sql.push_str(&column.ty_str); } + if column.notnull { + sql.push_str(" NOT NULL"); + } if column.unique { sql.push_str(" UNIQUE");