Codegen compact-format generate unique attribute
This commit is contained in:
parent
37b36eb101
commit
360436ceac
@ -346,6 +346,9 @@ impl EntityWriter {
|
|||||||
attrs.push(quote! { nullable });
|
attrs.push(quote! { nullable });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
if col.unique {
|
||||||
|
attrs.push(quote! { unique });
|
||||||
|
}
|
||||||
if !attrs.is_empty() {
|
if !attrs.is_empty() {
|
||||||
let mut ts = TokenStream::new();
|
let mut ts = TokenStream::new();
|
||||||
for (i, attr) in attrs.into_iter().enumerate() {
|
for (i, attr) in attrs.into_iter().enumerate() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user