Skip to content

Commit

Permalink
make all fields not nullable (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
bh2smith authored Oct 12, 2023
1 parent 3d093a4 commit ec2e49f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/database/postgres.rs
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ impl Postgres {
unreachable!()
}
};
write!(&mut sql, " {type_}, ").unwrap();
write!(&mut sql, " {type_} NOT NULL, ").unwrap();
}
let primary_key = if is_array {
PRIMARY_KEY_ARRAY
Expand Down
2 changes: 1 addition & 1 deletion src/database/sqlite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ impl SqliteInner {
SqlType::Text => "TEXT",
SqlType::Blob => "BLOB",
};
write!(&mut sql, " {type_}, ").unwrap();
write!(&mut sql, " {type_} NOT NULL, ").unwrap();
}
let primary_key = if is_array {
PRIMARY_KEY_ARRAY
Expand Down

0 comments on commit ec2e49f

Please sign in to comment.