Support sea-query 0.12.9
This commit is contained in:
parent
e228ada74a
commit
b9a537db3b
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "sea-orm-codegen"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
authors = ["Billy Chan <ccw.billy.123@gmail.com>"]
|
||||
edition = "2018"
|
||||
description = "Code Generator for SeaORM"
|
||||
|
@ -41,6 +41,7 @@ impl Column {
|
||||
ColumnType::Uuid => "Uuid",
|
||||
ColumnType::Binary(_) => "Vec<u8>",
|
||||
ColumnType::Boolean => "bool",
|
||||
_ => unimplemented!(),
|
||||
}
|
||||
.parse()
|
||||
.unwrap();
|
||||
@ -87,7 +88,8 @@ impl Column {
|
||||
ColumnType::Custom(s) => {
|
||||
let s = s.to_string();
|
||||
quote! { ColumnType::Custom(#s.to_owned()).def() }
|
||||
}
|
||||
},
|
||||
_ => unimplemented!(),
|
||||
};
|
||||
if !self.not_null {
|
||||
col_def.extend(quote! {
|
||||
|
Loading…
x
Reference in New Issue
Block a user