From b1921dad57f0e3e2a7992d2dd6820b382bbd0fe2 Mon Sep 17 00:00:00 2001 From: Noel Kwan Date: Fri, 1 Nov 2024 15:28:07 +0800 Subject: [PATCH] docs --- src/meta/model/migration/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/meta/model/migration/src/lib.rs b/src/meta/model/migration/src/lib.rs index 1e97b4fa6a066..baa56105edcfe 100644 --- a/src/meta/model/migration/src/lib.rs +++ b/src/meta/model/migration/src/lib.rs @@ -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(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) } }