mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-21 16:05:17 +01:00
notnull is now set based on the nullable field instead of being hardcoded.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user