Persist NOT NULL column constraint to schema table

This commit is contained in:
PThorpe92
2025-09-27 13:12:19 -04:00
parent 2f38d2ef04
commit b7fc9fef40

View File

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