feat(migrations): add support for usize type
This commit is contained in:
parent
3977e08084
commit
8e9d2e06d4
1 changed files with 1 additions and 0 deletions
|
|
@ -9,6 +9,7 @@ impl Field {
|
|||
fn sql_type(&self) -> Option<String> {
|
||||
// for now, we just match against the rust type string representation
|
||||
match self.rust_type.as_str() {
|
||||
"usize" => Some("INTEGER".into()),
|
||||
"u64" => Some("INTEGER".into()),
|
||||
"u32" => Some("INTEGER".into()),
|
||||
"i32" => Some("INTEGER".into()),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue