Add nullable to ColumnDef

This commit is contained in:
Chris Tsang 2021-09-06 17:09:27 +08:00
parent de1f5d397d
commit 8d8415817d

View File

@ -248,7 +248,11 @@ impl ColumnDef {
self
}
pub fn null(mut self) -> Self {
pub fn null(self) -> Self {
self.nullable()
}
pub fn nullable(mut self) -> Self {
self.null = true;
self
}