feat(migrations): add support for usize type

This commit is contained in:
Matthieu Bessat 2025-03-21 22:56:13 +01:00
parent 3977e08084
commit 8e9d2e06d4

View file

@ -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()),