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");