Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kwannoel committed Nov 1, 2024
1 parent 77707e1 commit b1921da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/meta/model/migration/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,12 @@ macro_rules! drop_tables {
};
}

/// We want to use the largest blob type across MySQL and Postgres, so we use this instead.
/// We want to use the largest blob type across MySQL, Postgres and Sqlite, so we use this instead.
pub(crate) fn create_blob32_column<T: IntoIden>(name: T, is_mysql: bool) -> ColumnDef {
if is_mysql {
ColumnDef::new_with_type(name, ColumnType::Custom(MySqlType::LongBlob.into_iden()))
} else {
// Both sqlite and postgres can just use blob.
ColumnDef::new_with_type(name, ColumnType::Blob)
}
}
Expand Down

0 comments on commit b1921da

Please sign in to comment.